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

Hakyll build failing using Stack

When building Hakyll using Stack as suggested, I do something like this (pinning the resolver version for immutability): $ stack --resolver lts-6.6 install hakyll But what I get is: Progress: 10/23 -- While building package x509-1.6.3 using: …
declension
  • 4,110
  • 22
  • 25
1
vote
1 answer

How to generate reveal.js slides from pandoc programmatically?

I am using Hakyll to generate my blog and would like to integrate in the generated web site some slides from talks I give. This should be as simple as defining you own custom pandocCompiler with adequate configuration and indeed I manage to do…
insitu
  • 4,488
  • 3
  • 25
  • 42
1
vote
1 answer

How to use Gulp with Hakyll

I'm new to Haskell and thought I would start by making a blog with Hakyll. I'm also using gulp for pre-processing my js and scss. How do I go about generating my js and css files when I build my Hakyll site?
gxc
  • 4,946
  • 6
  • 37
  • 55
1
vote
1 answer

Start from different html heading in Hakyll

I'm building a static website with Hakyll and I'm using the PandocCompiler to compile markdown to html. This works perfectly, but the compiler takes this: # Heading 1 and compiles it to

Heading 1

This is the expected result. However, I'd…
Ben
  • 1,561
  • 4
  • 21
  • 33
1
vote
1 answer

ipython notebooks to hakyll posts

I have a static blog made with hakyll, and some ipython notebooks -I'd like to share. My solution ipython nbconvert --to markdown notebook.ipynb Gives me: notebook.md /notebook_files/ notebook_files…
alberto
  • 2,625
  • 4
  • 29
  • 48
1
vote
3 answers

Render R plots into markdown for Pandoc/Hakyll

How to integrate R code in markdown and then insert the plots in the rendered document? I use the blogging engine Hakyll (http://jaspervdj.be/hakyll/). It uses Pandoc as a back-end for rendering blog posts written in markdown.
cdupont
  • 1,138
  • 10
  • 17
0
votes
0 answers

Hakyll isn't picking up my JavaScript file during compilation

I'm trying to set up a blog using Hakyll, and I've been running into some issues with adding JavaScript files. I'm trying to follow the standard way of handling JavaScript files with Hakyll, but my .js files don't seem to be getting picked up by the…
0
votes
1 answer

How to reconcile types between `hakyll` and `hakyll-images`

I am trying to use hakyll and hakyll-images to implement an example from the hakyll-images Readme which performs an image scaling as I will need to do. The types do not unify for the given example and I am seeking advice on how to proceed. The…
mherzl
  • 5,624
  • 6
  • 34
  • 75
0
votes
1 answer

How to fit in IO type when using external libraries

I'm trying out Hakyll and having trouble fitting in IO type into Hakyll compilation process. Here's an example Hakyll code from tutorial. main :: IO () main = hakyll $ do match "posts/*" $ do route $ setExtension "html" compile $…
Harfangk
  • 814
  • 9
  • 18
0
votes
1 answer

Testing with Hakyll's MonadMetadata

For our Hakyll codebase, I've written a few helper methods and have started adding some HSpec unit tests around newer ones e.g.: -- | Reject an item unless @fieldName@ is set to "true" unlessEnabled :: MonadMetadata m => String …
declension
  • 4,110
  • 22
  • 25
0
votes
0 answers

Pandoc can't get Locale/Encoding right with Hakyll and Gitlab CI

I'm trying to use Gitlab Pages to automatically deploy my Hakyll blog, but I keep having problems with file encoding. When building the pages, I get the following error: [ERROR]…
jmite
  • 8,171
  • 6
  • 40
  • 81
0
votes
1 answer

How do I interpolate $key$s in a file without applying a template?

In Jekyll it is possible to have a file that looks like --- title: Whatever layout: null ---

{{ title }}

The {{ title }} will be interpolated, but the layout: null means that the file contents won’t be wrapped in any kind of…
bdesham
  • 15,430
  • 13
  • 79
  • 123
0
votes
0 answers

Hakyll clean and build still has caching error

I execute the following: $ stack exec site clean Removing _site... Removing _cache... Removing _cache/tmp... And then: $ stack exec site build Initialising... Creating store... Creating provider... Running rules... Checking for out-of-date…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
0 answers

New version of Hakyll and Expected type : Map [Char] a0

I wrote a context definition with Hakyll like this : import qualified Data.Map as M .... mathCtx :: Context String mathCtx = field "mathjax" $ \item -> do metadata <- getMetadata $ itemIdentifier item return $ if "mathjax" `M.member` (metadata) …
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
0
votes
1 answer

How to combine multiple Pattern for match?

I want to match files with extensions *.md and *.tex in posts directory. The reason I can't use "posts/*" :: Pattern is because there are files *.tex.metadata in the posts directory. And site will give error on that files. [ERROR]…
wizzup
  • 2,361
  • 20
  • 34