From c70236571ab90024926aff2860b7569f5d32faac Mon Sep 17 00:00:00 2001 From: nek0 Date: Mon, 4 Dec 2017 00:07:46 +0100 Subject: [PATCH] fixing things up for presentation --- site/index.md | 4 ++-- src/Main.hs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/index.md b/site/index.md index 6117da1..4d2fd0e 100644 --- a/site/index.md +++ b/site/index.md @@ -1,9 +1,9 @@ --- title: Home -description: A mutlilinugal blog about technical stuff, writing and other musings +description: "A mutlilinugal blog about everything I spend my time with: technical stuff, writing and other musings." --- -## Welcome +## Welcome to my blog cat face grinning with smiling eyes diff --git a/src/Main.hs b/src/Main.hs index b8e4855..183125c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -45,7 +45,7 @@ main = match "site/index.md" $ do route $ myRoute `composeRoutes` setExtension "html" compile $ do - posts <- fmap (take 5) . recentFirst =<< loadAll "posts/*" + posts <- fmap (take 5) . recentFirst =<< loadAll "site/posts/*" let indexCtx = listField "posts" (postCtx tags) (return posts) <> constField "title" "Home" <> defaultContext @@ -53,7 +53,7 @@ main = >>= applyAsTemplate indexCtx >>= renderPandoc >>= loadAndApplyTemplate "templates/default.html" baseCtx - >>= relativizeUrls + -- >>= relativizeUrls match (fromList [ "site/about.md" @@ -63,7 +63,7 @@ main = route $ myRoute `composeRoutes` setExtension "html" compile $ pandocCompiler >>= loadAndApplyTemplate "templates/default.html" baseCtx - >>= relativizeUrls + -- >>= relativizeUrls match "site/404.md" $ do route $ myRoute `composeRoutes` setExtension "html" @@ -118,7 +118,7 @@ main = makeItem "" >>= loadAndApplyTemplate "templates/archive.html" archiveCtx >>= loadAndApplyTemplate "templates/default.html" archiveCtx - >>= relativizeUrls + -- >>= relativizeUrls match "templates/*" $ compile templateCompiler @@ -205,7 +205,7 @@ feedConf = FeedConfiguration config :: Configuration config = defaultConfiguration - { deployCommand = "rsync --del --checksum -ave 'ssh -p 5555' \\_site/* nek0@chelnok.de:/home/nek0/www/blog" + { deployCommand = "rsync --del --checksum -ave 'ssh -p 5555' \\_site/* nek0@chelnok.de:/home/nek0/www/blog-seo" } --------------------------------------------------------------------------------