Skip to content

Problems with "match" to make html from a different folder #1060

@pippocarmona

Description

@pippocarmona

Greetings!

I've been having some problems having hakyll make individual html pages for contributors to the website I'm making. Their bios are written in markdown and are in a separate folder from /posts. This is the code I have in my site.hs:

import           Data.Monoid (mappend)
import           Hakyll
..
..
    match "authors/*" $ do
        route $ setExtension "html"
        compile $ pandocCompiler 
            >>= loadAndApplyTemplate "templates/author.html" defaultContext
            >>= relativizeUrls

I included the import portion because it may be an error on my part for not having the right packages included.

I use the command stack exec site rebuild to compile the website. But, the author profiles are left untouched. And when I check the _site folder, the expected files and folder are not there.

Btw, I'm new to haskell.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions