Add Syntax Highlighting

Posted on October 16, 2020
Tags: hakyll

This is “just” a matter of creating a CSS file and adding it to the repository. The hard part is to have the patience to create the CSS file, at least for me, because the css classes are not descriptive (ex: what the hell are class="ot" and class="op"?). I tried finding ready to use ones but I could only find some on tejasbubane/hakyll-css. I chose the zenburn one.

Next steps are to copy paste its content to css/syntax.css then add a link to the css file in templates/default.html:

<link rel="stylesheet" href="/css/syntax.css" />