1
0
Fork 0

added custom fonts

master
Rostyslav Hnatyshyn 1 year ago
parent 8a954278e3
commit 6642a4992c
  1. 9
      css/default.scss
  2. 17
      site.hs

@ -1,9 +1,11 @@
@import url(/fonts/fonts.css);
$bg-color: #F3F8F1;
$primary-color: #D7263D;
$secondary-color: #984EA3;
html {
font-family: "Iosevka", sans;
font-family: "SpaceGrotesk";
background-color: $bg-color;
}
@ -163,6 +165,7 @@ img {
code {
color: white;
background-color: #212121;
font-family: monospace;
padding: 0 3px;
font-size: 1rem;
font-family: "PressStart";
padding: .1rem .3rem .2rem;
}

@ -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
-- Static directories
match "files/*" $ do
match ("fonts/*" .||. "images/*" .||. "files/*") $ do
route idRoute
compile copyFileCompiler
@ -33,15 +30,7 @@ main = hakyllWith config $ do
route idRoute
compile compressCssCompiler
match "posts/*" $ do
route $ setExtension "html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/post.html" postCtx
>>= loadAndApplyTemplate "templates/default.html" postCtx
>>= relativizeUrls
match "publications/*" $ do
match ("posts/*" .||. "publications/*") $ do
route $ setExtension "html"
compile $
pandocCompiler

Loading…
Cancel
Save