Skip to main content

Questions tagged [hakyll]

A Haskell library for generating static websites

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. ...
Joe's user avatar
  • 1,589
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 ....
equanimitus's user avatar
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 ...
Justin Manley's user avatar
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 ...
fhchl's user avatar
  • 751
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 ...
Stéphane Laurent's user avatar
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:...
plasma's user avatar
  • 297
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"> $...
iluvAS's user avatar
  • 513
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....
Marcus L.'s user avatar
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 ...
Kartöfluvofan's user avatar
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: ...
Kartöfluvofan's user avatar
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: ...
user3760874's user avatar
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 ...
Nigel's user avatar
  • 1,213
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 ...
Josh Cho's user avatar
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 ...
NordCoder's user avatar
  • 413
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 ...
Jonathan's user avatar
  • 11.1k

15 30 50 per page
1
2 3 4 5 6