Questions tagged [hakyll]
A Haskell library for generating static websites
hakyll
80
questions
1
vote
1
answer
81
views
How to add Heading Links in Hakyll/Pandoc
I've got a Blog, generated using the Hakyll static site generator.
Hakyll uses Pandoc's markdown parser, which by default, generates IDs for each of the heading elements, based on their contents.
...
0
votes
0
answers
82
views
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 ....
1
vote
0
answers
58
views
How to use Hakyll.loadSnapshot without "No instance for (Typeable a0)" error
I'm trying to add some functionality to my site so that I can expose different versions of a post. For example, if my source directory contains
mypost/version/1
mypost/version/2
mypost/version/3
I'd ...
5
votes
2
answers
163
views
How to use pandoc-crossref with Hakyll
I'm trying out Hakyll for an academia-and-math-heavy static website. I'd like to use pandoc-crossref for cross-references to equations.
What is the simplest way to include pandoc-crossref into the ...
1
vote
1
answer
131
views
Cannot install my Hakyll blog on Windows (issue with network library)
My Ubuntu laptop is dead. So I'm trying to install the Haskell projects for my Hakyll blog on Windows. I didn't change anything to the source code and the stack.yaml file, and I installed the Haskell ...
1
vote
1
answer
70
views
gitlab-ci.yml file template for hakyll website project
Is there a hakyll template for GitLab gitlab-ci.yml?
I found there are some on gitlab
https://gitlab.com/jtojnar/hakyll
https://gitlab.com/pages/hakyll
I use the following file in the choice 2
image:...
2
votes
1
answer
84
views
Hakyll get list of tags from list of posts
I'm using Hakyll to make a blog index page where all my posts are listed. Each post has fields of date, title, preview and list of tags.
<!-- /blog.html -->
<div class="list">
$...
1
vote
1
answer
250
views
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....
2
votes
1
answer
200
views
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 ...
2
votes
1
answer
168
views
How to have a second list for a second directory of posts in Hakyll html?
I have a section in an index page that lists posts from the posts/* directory. What I would like is to have another section that lists posts from a bibs/* directory.
So, it would look something like:
...
2
votes
1
answer
172
views
Sort Hakyll item list by a custom field
I want to add a custom field to my posts called coolness, like this:
---
title: Something
coolness: 10
---
and then I want to sort my posts by coolness. How do I do that? I know I can sort by date:
...
2
votes
1
answer
79
views
Custom content on a tags page
I have setup Hakyll to generate basic tag pages from blog posts as follows:
main = do
hakyll $ do
match "preambles/*.md" $ compile $ pandocCompiler >>= relativizeUrls
...
4
votes
1
answer
378
views
Hakyll tutorial goes wrong
I am following the Hakyll tutorial as in this https://jaspervdj.be/hakyll/tutorials/01-installation.html.
But it seems that something is wrong and I can't tell what it is. When I run 'stack init' I ...
1
vote
1
answer
444
views
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 ...
3
votes
2
answers
1k
views
How can I make this Haskell development environment in Nix?
I'm trying to make a Haskell development environment for a web project that just has the dependencies hakyll, blaze, and clay. Only, clay appears to fail to build, complaining that Setup: Encountered ...