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 idRoute
compile copyFileCompiler
In the fonts
directory, I've got a number of .ttf
font files whose permissions and owners match the rest of the site's static files (all of which work properly).
For some reason though, after rebuilding the site (with stack exec site rebuild
), these updates aren't reflected in the binary, and routes to fonts/*
result in a 404.
How can I get Hakyll to load fonts?