Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Exporting from Jekyll to Grav

first-time

Started by Mariana tiefensee 8 years ago · 2 replies · 1312 views
8 years ago

Hi, I'm new to Grav and I was wondering if maybe there's an automated way to export from Jekyll to Grav without having to go through the code line by line?

Thank you😊

8 years ago

Fair enough question, no need to be embarrassed 🙂

I don't know of any, only a Drupal exporter. Maybe one day. How "dynamic" and large is your site? If it's simple and small, I'd say it would be a great learning exercise to go through making it step by step.

When I've converted static themes (which I guess are a bit like static sites from Jekyll), I've pasted whole pages into Grav Twig templates. They can just be HTML at first, then go through and identify the "dynamic" components. It should be simple to identify the dynamic components because you would have already done that in Jekyll. You need to figure out where the dynamic information will live and encode it in a structured way. Generally, dynamic content you use in templates will be in page frontmatter, page markdown, or configuration (theme/site etc).

Before you start working on templates, read a little in the docs about how pages are structured and how they select templates. Keep the Grav docs open and the Twig docs when you start editing those files.

By the end of this process, you'll really know your Grav! :)

last edited 06/12/18 by hughbris

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago