Browse Source

some content

master
Julien Marquet 3 years ago
parent
commit
a2d3d17fb4
  1. 3
      .gitignore
  2. 18
      src/index.md
  3. 5
      src/templates/default.html
  4. 6
      ssg/quickrun.sh
  5. 13
      ssg/src/Main.hs

3
.gitignore vendored

@ -0,0 +1,3 @@
ssg/dist-newstyle
src/_cache
src/_site

18
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)

5
src/index.html → src/templates/default.html

@ -1,9 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8">
<title>$title$</title>
</head> </head>
<body> <body>
recursor.wf $body$
</body> </body>
</html> </html>

6
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

13
ssg/src/Main.hs

@ -1,10 +1,17 @@
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
import Data.Maybe (fromMaybe)
import Hakyll import Hakyll
main :: IO () main :: IO ()
main = hakyll $ do main = hakyll $ do
match "index.html" $ do match "templates/*" $
route idRoute compile templateBodyCompiler
compile copyFileCompiler
match "index.md" $ do
route $ constRoute "index.html"
compile $
pandocCompiler
>>= loadAndApplyTemplate "templates/default.html" defaultContext

Loading…
Cancel
Save