From d9aa4be1f38c44390997b49bcd02dec966655cdf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 1 Jun 2012 22:44:27 +0200 Subject: Various fixes --- hakyll.hs | 6 +++--- posts/2009-12-04-this-blog-aint-dead.markdown | 3 +++ templates/archiveitem.html | 3 --- templates/default.html | 18 ++++++++++-------- templates/index.html | 4 ++++ templates/post.html | 2 +- templates/post_short.html | 13 ------------- templates/postitem.html | 4 ---- 8 files changed, 21 insertions(+), 32 deletions(-) delete mode 100644 templates/archiveitem.html delete mode 100644 templates/post_short.html delete mode 100644 templates/postitem.html diff --git a/hakyll.hs b/hakyll.hs index f5e1045..9ec9225 100644 --- a/hakyll.hs +++ b/hakyll.hs @@ -51,7 +51,7 @@ main = hakyll $ do >>> ((constA () &&& constA "index*") &&& id) >>> paginatePosts (const "Home") - match "posts/*" $ compile $ readPageCompiler + match "posts/*" $ compile $ pageCompiler >>> (id &&& getIdentifier) >>> setFieldA "path" (arr $ fromMaybe "" . runRoutes (setExtension ".html")) >>> (id &&& arr (getField "path")) @@ -104,10 +104,10 @@ main = hakyll $ do nav prev next = navPrev prev ++ navNext next navPrev Nothing = " " - navPrev (Just url) = "« Newer Entries" + navPrev (Just url) = "« Newer Entries" navNext Nothing = " " - navNext (Just url) = "Older Entries »" + navNext (Just url) = "Older Entries »" pageTitle 0 = "" pageTitle i = " - Page " ++ show (i+1) diff --git a/posts/2009-12-04-this-blog-aint-dead.markdown b/posts/2009-12-04-this-blog-aint-dead.markdown index 0c56146..4f48c65 100644 --- a/posts/2009-12-04-this-blog-aint-dead.markdown +++ b/posts/2009-12-04-this-blog-aint-dead.markdown @@ -11,3 +11,6 @@ dolor eu enim tristique vel vehicula risus mollis. Nunc nec tortor quam. Nulla a mauris arcu. Phasellus venenatis tortor vel odio tincidunt consequat. Integer venenatis nibh vitae lectus laoreet eu feugiat nunc pretium. Integer nec turpis metus, in fermentum lorem. + + * list + * foo \ No newline at end of file diff --git a/templates/archiveitem.html b/templates/archiveitem.html deleted file mode 100644 index 60da335..0000000 --- a/templates/archiveitem.html +++ /dev/null @@ -1,3 +0,0 @@ -
  • - $title$ -
  • diff --git a/templates/default.html b/templates/default.html index 74eac8b..38331ab 100644 --- a/templates/default.html +++ b/templates/default.html @@ -33,16 +33,17 @@
    $body$ - -
    - - $nav$ -