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
1
vote
1 answer

cabal new-install hakyll is fails to build dependency

After installing ghcup, I try to install hakyll with the command cabal new-install hakyll. This leads to a build error in a dependency, the text-conversions library: Failed to build text-conversions-0.3.0. Build log…
Marcus L.
  • 87
  • 2
  • 6
1
vote
1 answer

Creating a list field from metadata in Hakyll

I'm trying to generate HTML for posts in Hakyll that have a versions entry in their metadata. For example, a post may have versions: Python 3.4, pytest 1.5.2 which would be formatted nicely at the bottom of the post. To achieve this, I want to…
NordCoder
  • 403
  • 1
  • 7
  • 21
1
vote
0 answers

Hakyll snippet doesn't compile when let statement used

I'm playing around with Hakyll and try to understand why it doesn't compile whet I use let statement in the following code snippet: main :: IO () main = hakyll $ do -- some other matches match "index.html" $ do route idRoute …
aryndin
  • 591
  • 5
  • 18
1
vote
1 answer

Tag list field in Hakyll templates

So Hakyll already has a tagsField available to add to templates, but it preformats the whole list of tags into an HTML string. I could write a custom tagsField, but I'd like to separate my concerns: have Hakyll build a list of tags for each page,…
acdw
  • 21
  • 1
  • 5
1
vote
1 answer

Same style for all project github pages?

I would like all my project pages to have the same custom style. But for now I only see that every project page can be configured separately (choosing default theme from Setting of the project or creating gh-pages branch with the source files). Is…
vrom911
  • 694
  • 1
  • 5
  • 16
1
vote
1 answer

Why does Stack rebuild some dependencies on each build?

I'm now learning hakyll static site generator with stack. When I execute stack build in the directory of my Hakyll site to rebuild site.hs, stack also rebuilds and copy/register dependencies each time, as shown below: $ stack --version Version…
kaznak
  • 28
  • 5
1
vote
0 answers

Hakyll template list of rows

I am moving my blog to hakyll. In my webdesign at the index page there are horizontal rows with 3 post previews in each. Css/js is made in such a way, that I'd better populate this row not with all posts I have, allowing them to flow automatically,…
Dahan
  • 163
  • 1
  • 10
1
vote
1 answer

Cannot run Hakyll on macOS Sierra: malformed mach-o: load commands size

I can compile Hakyll, but when I try to run it I get a linking error. First I install Hakyll in a sandbox: cabal sandbox init cabal install Hakyll This completes successfully. Then I create a plain site using hakyll-init and move the files up a…
John J. Camilleri
  • 4,171
  • 5
  • 31
  • 41
1
vote
1 answer

Custom pandoc writer with Hakyll

I'm trying to write a special Hakyll compiler to use a lua script to build my website. I found this function which seams to make what I want : customWriterCompilerWith :: (WriterOptions -> Pandoc -> IO String) ->…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
1
vote
1 answer

How do I concat pages?

I'm trying to automatically generate a bibliography in Hakyll. I'm using the nocite pandoc feature to generate a list of all publications in a .bib file. But, I'd like to have different sections (i.e. peer reviewed, theses, posters, etc.) My idea on…
jmite
  • 8,171
  • 6
  • 40
  • 81
1
vote
1 answer

How can I include post teasers in my installation?

I'm following the official instructions on the Hakyll site to get post teasers up and running on my site. Unfortunately, I've hit a snag, and the instructions aren't much help. I'm getting an out-of-scope error for the item value referenced in this…
Jules
  • 14,200
  • 13
  • 56
  • 101
1
vote
1 answer

Can not build Hakyll with CircleCI

I need help building Hakyll with CircleCI, I could not find much helper info about this error. The error seems to be on building dependency HsLua library, here is the stack logs I am…
1
vote
1 answer

How to use partials inside markdown?

I'm just starting out with Hakyll and am working with the default site that comes with hakyll init. I tried putting the following in 2015-08-12.spqr.markdown: $partial("includes/DB.hs")$ It didn't work as expected - the post just showed the literal…
Saurabh Nanda
  • 6,373
  • 5
  • 31
  • 60
1
vote
1 answer

How do I modify the body and fields of a page?

Is it possible with Hakyll to modify a field such as "date", "author" and more specifically the body of a page. For example, I wish to modify or delete some part of page. I looked at the Hakyll documentation on Hackage. There was a function called…
Vigo
  • 131
  • 6
1
vote
1 answer

Multi posts per pages

I'm making a website with Hakyll and I would like to gather some posts in the same page. I find somes example on websites such as dannysu or EAnalytica, but my code is not working and I don't understand why. My code compile fine, the trace function…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37