added custom fonts

This commit is contained in:
2023-09-06 18:40:07 -07:00
parent 8a954278e3
commit 6642a4992c
2 changed files with 12 additions and 20 deletions
+4 -15
View File
@@ -4,7 +4,6 @@
import Data.Monoid (mappend)
import Hakyll
import Hakyll.Web.Sass (sassCompiler)
--------------------------------------------------------------------------------
config :: Configuration
config =
@@ -14,11 +13,9 @@ config =
main :: IO ()
main = hakyllWith config $ do
match "images/*" $ do
route idRoute
compile copyFileCompiler
match "files/*" $ do
-- Static directories
match ("fonts/*" .||. "images/*" .||. "files/*") $ do
route idRoute
compile copyFileCompiler
@@ -33,7 +30,7 @@ main = hakyllWith config $ do
route idRoute
compile compressCssCompiler
match "posts/*" $ do
match ("posts/*" .||. "publications/*") $ do
route $ setExtension "html"
compile $
pandocCompiler
@@ -41,14 +38,6 @@ main = hakyllWith config $ do
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "publications/*" $ do
route $ setExtension "html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "index.html" $ do
route idRoute
compile $ do