Jekyll migration guide #1852
Replies: 17 comments
-
|
Happy to test and review it in you need an extra pair of 👀 |
Beta Was this translation helpful? Give feedback.
-
|
Having @DirtyF review it would be awesome, as he manages documentation in Jekyll core team! |
Beta Was this translation helpful? Give feedback.
-
|
May I add a request that this migration guide covers how to simulate permalink rewriting on a collection basis? Currently I have files saved in a locations such as |
Beta Was this translation helpful? Give feedback.
-
|
Good call @paulrobertlloyd. Just as a stopgap measure to point you in the right direction, I’ve added an additional example to https://github.com/11ty/eleventy/blob/master/docs/permalinks.md#use-filters which you can add to a Directory Specific Data File: https://github.com/11ty/eleventy/blob/master/docs/data.md#template-and-directory-specific-data-files |
Beta Was this translation helpful? Give feedback.
-
|
Ah-ha, that seems like it makes sense. Will give it a go, thanks! |
Beta Was this translation helpful? Give feedback.
-
|
@paulrobertlloyd You may want to wait for 0.2.15 to try this. I’m adding a few more test cases around this behavior and found some failures that you might run into! It’ll be coming in the next day or so. |
Beta Was this translation helpful? Give feedback.
-
|
@paulrobertlloyd were you able to complete your migration now that 11ty/eleventy#75 has shipped? Anything worth mentioning in the migration guide? |
Beta Was this translation helpful? Give feedback.
-
|
Still working on it! With roughly the same number of pages, build time for ~620 pages is around 12 seconds with 11ty, whereas with Jekyll (that also involves some asset pipelining) I’m hovering around the 40 second mark. So a marked improvement, but pretty sure compilation could be even faster with caching, incremental updates and other such optimisations. Anyhow, in answer to your actual question (!) @DirtyF, here are my learnings so far… Liquid templatingOne of the main things that would need covering is the differences between Jekyll’s Liquid implementation, and that of Liquid JS. For example, Jekyll’s include syntax follows this pattern: <!-- page.html -->
{% include include.html value="key" %}
<!-- include.html -->
{{ include.value }}Whereas Liquid JS uses Shopify’s syntax: <!-- page.html -->
{% include "include.html", value: "key" %}
<!-- include.html -->
{{ value }}There are also a number of useful filters available in Jekyll that are not available out of the box with 11ty. Perhaps some of these should be included as universal filters @zachleat? Querying DataIt would also be really helpful if there was some documentation that explained how to query page data, as it’s not immediately clear right now. As far as I can tell, you can use the following variables when writing a page template: but when looping through items you need to use the following: Only by writing this comment and testing the above have I realised what values get prefixed with ConfigurationFinally, I think there would need to be a description of where Jekyll’s configuration values should exist in the world of 11ty. For example, I moved many of the values stored in my To be clear, I have no problem with the above changes, but should you have a Jekyll site that is particular customised, or makes use of many of Jekyll’s features, a bit of work is needed to achieve the same result using 11ty’s equivalent features. Therefore, this document would almost need to take each feature of Jekyll in turn, and explain how your existing configuration should be adapted. Of course, I’d be more than happy to help with this effort! |
Beta Was this translation helpful? Give feedback.
-
|
Wow @paulrobertlloyd, thank you for this! Super helpful! Just a quick reply here before I respond more in-depth. I believe that it was all
Any in particular a priority? That’s quite a list there |
Beta Was this translation helpful? Give feedback.
-
|
In order of priority…
Of course, this is just my 2¢. But |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @paulrobertlloyd for this tutorial: |
Beta Was this translation helpful? Give feedback.
-
|
While Paul did write the guide up (thank you Paul!) there is still some gold in here that needs to be mined so I’m putting this into the documentation queue |
Beta Was this translation helpful? Give feedback.
-
|
This repository is now using lodash style issue management for documentation requests. This means documentation issues will now be closed instead of leaving them open. View the documentation queue backlog here. Don’t forget to upvote the top comment with 👍! |
Beta Was this translation helpful? Give feedback.
-
|
@paulrobertlloyd I'm currently migrating from Jekyll to Eleventy so I can help out if you want with this migration guide and content. I think it would be a great addition and real need for the official documentation. I think the pitfalls people is gonna fall more is in the switcheroo between |
Beta Was this translation helpful? Give feedback.
-
|
@jeremenichelli If people are interested in updating, improving and extending the article I wrote for 24ways and adding it to the official docs, I’d be open to helping and guiding that effort. |
Beta Was this translation helpful? Give feedback.
-
|
@paulrobertlloyd it would be great to jin forces and come up with some piece that can live in the official docs to avoid people openning duplicated issues or roaming around the repo when the face some of these things. I'll read your article and join my findings and if I see something good comes from it I'll let you folks know. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for bumping an old thread, but I wasn't aware of an official guide and wanted to throw my blog post in to the mix, in case it's of any help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions