Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Exporting from Jekyll to Grav

first-time

Started by Mariana tiefensee 8 years ago · 2 replies · 1110 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 Hugh Barnes

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 104 18 hours ago
General · by pamtbaau, 23 hours ago
1 88 22 hours ago
General · by Andy Miller, 1 day ago
0 53 1 day ago
General · by Marcel, 12 months ago
6 381 5 days ago
General · by Duc , 6 days ago
3 69 6 days ago