~ben/web

9699ebbdb97d9093c34ea0e32c90b72e8f408c5f — Ben Sima 1 year, 3 months ago 686bd48
Use index.html template
3 files changed, 5 insertions(+), 2 deletions(-)

M Main.hs
A templates/index.html
M web.cabal
M Main.hs => Main.hs +1 -1
@@ 73,7 73,7 @@ indexRules = do
    route $ setExtension ".html"
    compile $
        pandocCompiler >>=
        loadAndApplyTemplate "templates/page.html" defaultContext >>=
        loadAndApplyTemplate "templates/index.html" defaultContext >>=
        loadAndApplyTemplate "templates/default.html" defaultContext >>=
        relativizeUrls


A templates/index.html => templates/index.html +3 -0
@@ 0,0 1,3 @@
<article>
  $body$
</article>

M web.cabal => web.cabal +1 -1
@@ 1,5 1,5 @@
name:           web
version:        2
version:        3
category:       Text
homepage:       https://bsima.me
author:         Ben Sima