Tutorials about Hakyll
Tutorial series
- Installation
- The basics
- Rules, routes and compilers
- More on compilers: load, and templates
- Snapshots, and how to produce an RSS/Atom/JSON feed
- Producing multiple versions of a single file
Other articles
In no particular order:
- A Guide to the Hakyll Module Zoo by Brent Yorgey
- FAQ by Jasper Van der Jeugt
- Using Hakyll with GitHub Pages by Erik Stevenson
- Hakyll 3 to Hakyll 4 migration guide by Jasper Van der Jeugt
- Using Clay with Hakyll by Jasper Van der Jeugt
- Using teasers in Hakyll by Ivan Veselov
External articles
These are articles on external blogs. If you wrote a similar article, feel free to shoot me an email so I can add it to the list.
In no particular order:
- Add tags to your Hakyll blog by Javran Cheng
- Pygmentising Hakyll's Syntax Highlighting by Tony Zorman
- Incorporating BibTeX into Hakyll by Tony Zorman
- Port an existing Blogger blog to Hakyll by Daniel Campoverde
- Using Cassius templating with Hakyll by Daniel Campoverde
- Clean URLs with Hakyll by Rohan Jain
- Deploying with Widely by Kyle Marek-Spartz
- External code inclusion with Hakyll by Tobias Pleyer
- Hakyll's functionField by Beerend Lauwers
- Create a GitHub page with Hakyll and CircleCI by Juan Pedro Villa
- Inlining and compressing CSS by Kyle Marek-Spartz
- Jekyll Style URLs with Hakyll by Andreas Herrmann
- Using Sidenotes with Hakyll by Tony Zorman
Robert Pearce's series
Robert Pearce has been writing an excellent tutorial-style series on Hakyll as well. You can find those here:
- Pt. 1: Setup & Initial Customization
- Pt. 2: Generating a Sitemap XML File
- Pt. 3: Generating RSS and Atom XML Feeds
- Pt. 4: Copying Static Files For Your Build
- Pt. 5: Generating Custom Post Filenames From a Title Slug
- Pt. 6: Pure Builds With Nix
- The hakyll-nix-template Tutorial
All these tutorials assume you are using the latest stable version of Hakyll. If this is not the case, you might want to update using:
$ ghc-pkg unregister hakyll
$ cabal update
$ cabal install hakyll
Or using stack:
$ stack install hakyll