1
0
Fork 0

added custom fonts

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

@ -1,15 +1,17 @@
@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;
} }
a { a {
color: $primary-color; color: $primary-color;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
@ -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;
} }

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

Loading…
Cancel
Save