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
4
votes
1 answer

How to filter Hakyll posts with a custom metadata

I would like to filter some posts of my website based on a metadata value. I would like to create a specific metadata called status (like title or date) which could take several values (draft, published, archive) : --- title: The title author:…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
4
votes
1 answer

List of all BibTex entries in a .bib file, to generate Hakyll publication list?

I'm making a personal website with Hakyll, and I'd like to list my publications. I've found this module and this guide for how to print the references from a markdown document at the bottom. The problem with this is, it assumes you've got some…
jmite
  • 8,171
  • 6
  • 40
  • 81
4
votes
0 answers

Hakyll - How can I use the contents of a transformed file in another file transformation?

Let's say I have this Hakyll template:

The archive

This is an archive of all posts.

    $partial("templates/post-list.html")$
Now, I would like to extract the static text and put it in a MarkDown file that is…
Beerend Lauwers
  • 872
  • 7
  • 14
4
votes
1 answer

Using markdown for templates in Hakyll

Using the skeleton website generated by hakyll-init site_foo, I want to translate site_foo/index.html into markdown and still keep its contents. In other words, have a site_foo/index.markdown that refers to the posts-list template. I do not know…
Yuval Langer
  • 649
  • 1
  • 5
  • 16
4
votes
2 answers

How to do subdomain routing using Haskell

Using Hakyll that uses snap i started working on a routing server. Given the following code from their tutorials i can see the routing but i would like to have some different applications on their own subdomains like oneapp.mysite.com. Is this…
Deck Pope
  • 231
  • 3
  • 10
4
votes
1 answer

How to link local version of library with cabal

I want to make a local change in Pandoc and recompile Hakyll so that it uses that local change. So, I downloaded the development version of both libraries: git clone https://github.com/jgm/pandoc.git git clone…
Aditya
  • 157
  • 7
3
votes
2 answers

Remove teaser from pages

I'm making a website with Hakyll. I successfully created a RSS feed showing showing for each post the teaser section delimited by . My problem is that this teaser section is shown in the full (templated) pages of these posts. And I would…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
3
votes
0 answers

Navigation sidebar with Hakyll

I'm trying to make a website with Hakyll and bootstrap. I would like to add a navigation sidebar (automatically updated at compilation) on some pages of my website and I'm not sure of how to do it. I searched for tutorials or examples but I didn't…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
3
votes
3 answers

How to relativize URLs in css files in Hakyll?

In my Hakyll site I have a stylesheet linked into the page: This CSS contains a @font-face directive linking to a font file: @font-face { font-family: "Bla"; src: url("/data/bla.ttf")…
arrowd
  • 33,231
  • 8
  • 79
  • 110
3
votes
1 answer

Hakyll - Using makeItem with data to create a list in HTML

I have a list of categories. Each category itself has a list of sub-categories: [(Category,[SubCategory])]. I would like to get the following HTML output in a single page:

Category 1

  • Subcategory 1
  • Subcategory…
Beerend Lauwers
  • 872
  • 7
  • 14
3
votes
1 answer

Haskell package build error

I created a cabal sandbox and I'm trying to build hakyll Haskell package on my OSX but i get build error on package temporary-1.2.0.2. What can be the reason? cabal version is 1.20 Build error is below: abcdef-MacBook-Pro:hakyll bd$ cabal install…
xyzt
  • 1,201
  • 4
  • 18
  • 44
3
votes
2 answers

How to use HTML as input to Hakyll

I use Hakyll for my blog. I currently write my posts in emacs org-mode and then have org-mode export to markdown. Then Hakyll turns that markdown into HTML. That works OK but I would like finer-grained control of the HTML that gets posted. What I…
haroldcarr
  • 1,523
  • 15
  • 17
2
votes
1 answer

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.
$for(posts)$
iluvAS
  • 513
  • 4
  • 9
2
votes
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…
2
votes
1 answer

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: