markdown Tag Archive

Migrating Pelican To Jekyll (How-To)

Migrating Pelican To Jekyll
Pelican and Jekyll both use markdown formatting for their posts, but their post metadata (front matter in Jekyll parlance) formatting is slightly different. I have over 150 posts to migrate, so started looking for a few ways to make this process easier. Jekyll metadata needs to be surrounded by two lines containing three dashes ---. This is easily achieved with the use of sed. To add the line to very top of the file, use the following sed command. sed -i '1i ---' *.md To add the line directly underneath your front matter, you can use something like this which...