diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34e921e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +ssg/dist-newstyle +src/_cache +src/_site diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..f8e67c6 --- /dev/null +++ b/src/index.md @@ -0,0 +1,18 @@ +--- +title: recursor.wf +--- + +# recursor.wf + +I like computers but they're just a bit complicated + + - Julien Marquet-Wagner + - [github](https://github.com/thejohncrafter) + +Computer Science & Math Student at ENS Ulm + +Current topics of interest: + + - formal verification with [lean](leanprover.github.io) + - [Geometry of Interaction](https://ncatlab.org/nlab/show/Geometry+of+Interaction) + diff --git a/src/index.html b/src/templates/default.html similarity index 51% rename from src/index.html rename to src/templates/default.html index 13e04db..6559947 100644 --- a/src/index.html +++ b/src/templates/default.html @@ -1,9 +1,10 @@ - + + $title$ - recursor.wf + $body$ diff --git a/ssg/quickrun.sh b/ssg/quickrun.sh new file mode 100755 index 0000000..c178601 --- /dev/null +++ b/ssg/quickrun.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +TGT=$(mktemp -d) +cabal v2-install --installdir $TGT/ +cd ../src +$TGT/ssg rebuild +$TGT/ssg watch diff --git a/ssg/src/Main.hs b/ssg/src/Main.hs index d51ea42..dd8e4e0 100644 --- a/ssg/src/Main.hs +++ b/ssg/src/Main.hs @@ -1,10 +1,17 @@ {-# LANGUAGE OverloadedStrings #-} +import Data.Maybe (fromMaybe) + import Hakyll main :: IO () main = hakyll $ do - match "index.html" $ do - route idRoute - compile copyFileCompiler + match "templates/*" $ + compile templateBodyCompiler + + match "index.md" $ do + route $ constRoute "index.html" + compile $ + pandocCompiler + >>= loadAndApplyTemplate "templates/default.html" defaultContext