Ludovic's weblog

Under the hood

How this website is generated

When I started this website, I asked myself whether or not I should use a classic blog engine like WordPress or something less brutal that would answer my needs without being overkill.

During my researches, I stumbled upon Dr Jekyll and Mr Hyde, two static websites generators. The concept really interested me, so I started to do a little bit more digging in this direction. That's when I found James Hague's very interesting blog who uses a similar approach.

I decided to follow the same path: This site is generated by a python script, using a few jinja2 templates and a set of sass files for the style.

As for the posts, they are written using a mix of yaml for the header and markdown for the content:

---
title: Article title
subtitle: Article subtitle
date: 09/11/2012
author: Ludovic Heyberger
tags: [ list, of, tags ]
---

Here comes the content, written in **markdown**

The python script is in charge of generating the pages, the archives and an atom feed.

I love the process and I really like the simplicity.