Migration from Jekyll to Pelican
07:05 04 Dec 2015

Pelican articles start like this:

Title: Training your first Neural Network
Category: My bits and bytes
Date: 2015-12-03 07:30
Tags: Science, Papers, Reading, Google Scholar
Authors: Martin Thoma

The following article gives you the necessary knowledge ...

Jekyll articles start like this:

---
layout: post
title: Training your first Neural Network
author: Martin Thoma
date: 2015-12-03 07:30
categories:
- My bits and bytes
tags:
- Science
- Papers
- Reading
- Google Scholar
featured_image: logos/science.png
---
The following article gives you the necessary knowledge ...

I would like to migrate my blog from Jekyll to Pelican. However, I like the Jekyll way to annotate metadata better. It is also supported by the Markdown preview on GitHub (example) in contrast to the Pelican header type (example).

Is it possible to make Pelican understand the Jekyll tag list format? If not, how do I migrate Jekyll metadata to Pelican?

Differences

  • List format:
    • Pelican does not understand the tags format of Jekyll
    • Categories: I'm not sure if Pelican supports articles being in multiple categories. I'm also not sure if I have that, but again: Pelican doesn't understand the list format.
  • I have no idea how Pelican handles the featured_image. I guess one can access this from templates?
  • Is there something similar like layout in Pelican?
  • Differences which don't matter
    • The capital first letter seems not to matter. Pelican seems to understand it, when it is lowercase.
    • The --- before and after the metadata seems not to matter.
  • Pelian has {filename} for Linking to static files. I guess I can write a script which searches for ../images and replaces it with {filename}/images. Is it possible to tell Jekyll that {filename} should be replaced with ..? This would be nice for a transition phase where I still use Jekyll, but make the code acceptable for Pelican.

Except for plugins and themes where no general answer can be given, I'm not aware of any other important differences

migration jekyll pelican