Questions tagged [hakyll]

A Haskell library for generating static websites

Named with a tip of the hat to , Hakyll is an open source library that generates small to medium sized static websites.

http://jaspervdj.be/hakyll/

79 questions
0
votes
1 answer

listField always empty

I'd like to add a field to defaultContext, which will make a list of links available to all pages. Since I don't think I can change defaultContext itself, I've created a function which adds a listField to defaultContext and replaced all references…
pdoherty926
  • 9,895
  • 4
  • 37
  • 68
0
votes
1 answer

Why am I unable to define an arbitrary field in Hakyll?

When trying to define a "links" field on my index page, I'm met with an error that says: [ERROR] Missing field $links$ in context for item index.html, even though I have created a links field. (At least I'm pretty sure I have ...) -- site.hs main =…
pdoherty926
  • 9,895
  • 4
  • 37
  • 68
0
votes
1 answer

Redirect old URLs (and subdomains) with Hakyll

I'm trying to migrate my site from Blogger to Hakyll (which I'll then deploy to Github pages), but I don't want all old links to break. Also, my old posts were all in blog.domain.com/, whereas now they'll be in domain.com/posts/. What's more, the…
gallabytes
  • 267
  • 1
  • 9
-3
votes
1 answer

Type error involving HashMap and Map when building a site

I'm trying to build this Hakyll blog. On trying to compile site.hs, the site-building program... root@AR:/usr/local# git clone https://github.com/relrod/blog elrod.me root@AR:/usr/local# cd elrod.me root@AR:/usr/local/elrod.me# ghc --make…
fisherman
  • 10,739
  • 5
  • 20
  • 16
1 2 3 4 5
6