Wondering for a while on how to setup a blog, one of my favourite languages is haskell. One of my favourite editors is vim. And one of my favourite principles is to automate as much as possible. It's nice to live life according to principle which could be defined as:
- A basic truth, law, or assumption: the principles of democracy.
- A rule or standard, especially of good behavior: a man of principle.
- The collectivity of moral or ethical standards or judgments: a decision based on principle rather than expediency.
- A fixed or predetermined policy or mode of action.
Another favourite principles, next to minimalism, is doing stuff as efficient as possible. What is more efficient as serving static pages? Hence the hakyll setup.
Maintaining my blog
I really like to write in vim in combination with other linux system tools to automate away all the routine tasks. For this end I have included nemesis in my toolchain. For 2 reasons:
- keep everything haskell
- blog will have dependencies I do NOT want to track mentally
- put deploying the website including dependencies which need to be resolved inside Nemesis
What is hakyll?
Like the homepage of hakyll states:
Hakyll is a Haskell library for generating static sites. It is written in a very configurable way and uses an xmonad-like DSL for configuration.
Why static site generators?
Static sites are extremely fast. You dont have to worry about security issues.
I based this site upon the blog of the creator of hakyll. But it will adapt to a more custom layout in the future.