sysgears / grain

Grain is a lightweight and powerful static website generator with custom themes to help create static, SEO-friendly websites or a blog in no time.
https://sysgears.com/grain
Other
160 stars 30 forks source link

Help to integrate Jekill module to import wordpress sites #6

Closed aruizca closed 9 years ago

aruizca commented 9 years ago

Hi all,

I'd like to use Grain for our corporate website but some people would rather use Jekill although we are all mostly Java and Groovy developers. Since Grain already uses some Ruby modules I was wondering how hard would it be to integrate the Wordpress import module from Jekill. We would be happy to collaborate if we get some indications.

Thanks

larixer commented 9 years ago

Hi,

That depends. What exact task do you have? If you just need to import posts from Wordpress website, you can run jekyll-import, get a bunch of resulting markdown files and place them into Grain theme.

If you want something more persistent, theoretically it should be possible to add "import" command into grain-octopress-theme, which calls jekyll-import and then does some post-processing of generated markdown files to finally convert jekyll posts to grain posts, I think the only difference that should be handled is inserting images into posts, the syntax for this has minor differences in Grain compared to Jekyll.

The latter approach is more difficult, and perhaps some commits would be needed into Grain to enable usage of Ruby code in Grain Theme commands.

Victor

larixer commented 9 years ago

Closing due to inactivity