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/

74 questions
2
votes
0 answers

Minimal Hakyll site

I understand there's an example site given by hakyll-init app But I'm looking to reduce even more to the skeleton, and just have 1 markdown page that renders in the root, "localhost:8000/", and an alias "localhost:8000/index.html." From the…
Mittenchops
  • 15,641
  • 28
  • 103
  • 200
2
votes
1 answer

Hakyll: enabling pandoc extensions?

I wanted to enable the Ext_autolink_bare_uris pandoc extension for Hakyll posts. I followed the instructions given here, and everything seems to be working... except that extension! The bare URI's in posts are not transformed into a link. Everything…
wmnorth
  • 237
  • 3
  • 8
2
votes
1 answer

Hakyll not updating with new routes

I'm trying to use Hakyll for the first time. Following the tutorials on the official site, I'm trying to extend the route handling images to work with fonts. I've changed the code in site.hs to this: match ("images/*" .||. "fonts/*") $ do route…
Jules
  • 13,397
  • 12
  • 50
  • 92
2
votes
1 answer

M.Map sudden expected type error

Everything was working great up until about a month or so ago... Suddenly I'm getting berkson.github.io/source/blog.hs: 333, 42 • Couldn't match type ‘unordered-containers-0.2.7.1:Data.HashMap.Base.HashMap …
2
votes
1 answer

Hakyll says "Dependency cycle detected: ..."

I'm trying to construct a site with 7 pages. Each page is defined using a .markdown input. On each page I want a header with links to all the other pages. Now, this seems to be impossible since Hakyll tells me that I have a recursive…
nesqi
  • 97
  • 7
2
votes
0 answers

Building a Hakyll site in “development” or “release” mode

I am building a site with Hakyll and I only want my Google Analytics code to be included if I am deploying the site, not when I’m just testing it using “site server”. Ideally I’d be able to write something like $if(deploying)$
bdesham
  • 13,980
  • 10
  • 70
  • 116
2
votes
1 answer

Error resolving cabal dependencies on Travis-CI

I'm trying to build my Hakyll site using Travis-CI. However, before I even get that far, I have a dependencies error when trying to install Hakyll as a dependency. I can build Hakyll locally on my machine with no problems. What might be causing the…
jmite
  • 7,320
  • 6
  • 32
  • 74
2
votes
1 answer

Minimal cabal file for use in sandbox

I’m trying to write a project with the Hakyll library. In order to avoid messing up with my system, I’d install it in a cabal sandbox in the same folder where my Hakyll project lives. Being more or less a beginner, I’m still struggling with getting…
Debilski
  • 63,532
  • 11
  • 107
  • 132
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.
  • 75
  • 1
  • 4
1
vote
1 answer

Ordering a list alphabetically with Hakyll

Earlier I asked a question about having two independent lists render on a given page, which was kindly answered. Now, I wish to alphabetise that list - and to show all items in the list (which I believe I can see how to do, but I have been focusing…
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
  • 303
  • 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
  • 504
  • 5
  • 15
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
  • 674
  • 1
  • 5
  • 14
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