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
+6 -3
View File
@@ -1,9 +1,11 @@
@import url(/fonts/fonts.css);
$bg-color: #F3F8F1; $bg-color: #F3F8F1;
$primary-color: #D7263D; $primary-color: #D7263D;
$secondary-color: #984EA3; $secondary-color: #984EA3;
html { html {
font-family: "Iosevka", sans; font-family: "SpaceGrotesk";
background-color: $bg-color; background-color: $bg-color;
} }
@@ -163,6 +165,7 @@ img {
code { code {
color: white; color: white;
background-color: #212121; background-color: #212121;
font-family: monospace; font-size: 1rem;
padding: 0 3px; font-family: "PressStart";
padding: .1rem .3rem .2rem;
} }
+3 -14
View File
@@ -4,7 +4,6 @@
import Data.Monoid (mappend) import Data.Monoid (mappend)
import Hakyll import Hakyll
import Hakyll.Web.Sass (sassCompiler) import Hakyll.Web.Sass (sassCompiler)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
config :: Configuration config :: Configuration
config = config =
@@ -14,11 +13,9 @@ config =
main :: IO () main :: IO ()
main = hakyllWith config $ do main = hakyllWith config $ do
match "images/*" $ do -- Static directories
route idRoute
compile copyFileCompiler
match "files/*" $ do match ("fonts/*" .||. "images/*" .||. "files/*") $ do
route idRoute route idRoute
compile copyFileCompiler compile copyFileCompiler
@@ -33,15 +30,7 @@ main = hakyllWith config $ do
route idRoute route idRoute
compile compressCssCompiler compile compressCssCompiler
match "posts/*" $ do match ("posts/*" .||. "publications/*") $ do
route $ setExtension "html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "publications/*" $ do
route $ setExtension "html" route $ setExtension "html"
compile $ compile $
pandocCompiler pandocCompiler