From 378130de2e576b8e811a7be0453be879db1b1d78 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 18 Aug 2018 11:02:40 +0200 Subject: [PATCH] more adjustments --- site/css/default.css | 8 +++++--- src/Main.hs | 2 +- templates/post-list.html | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/site/css/default.css b/site/css/default.css index 99fd4a7..6343596 100644 --- a/site/css/default.css +++ b/site/css/default.css @@ -50,7 +50,7 @@ article { padding: 20px; margin-left: 300px; overflow: auto; - max-width: 100ex; + max-width: 80em; } article a:hover{ @@ -324,8 +324,6 @@ h2 { margin: 30px; /* padding */ padding: 50px; - /* limit width */ - max-width: 700px; } .scripture p { @@ -344,6 +342,10 @@ h2 { margin-right: 5px; } +.postlist { + columns: 2; +} + @media screen and (max-width: 600px){ .sidebar{ position: relative; diff --git a/src/Main.hs b/src/Main.hs index 4a22d22..5303e16 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -46,7 +46,7 @@ main = match "site/index.md" $ do route $ myRoute `composeRoutes` setExtension "html" compile $ do - posts <- fmap (take 5) . recentFirst =<< loadAll "site/posts/*" + posts <- fmap (take 6) . recentFirst =<< loadAll "site/posts/*" let indexCtx = listField "posts" (postCtx tags) (return posts) <> constField "title" "Home" <> defaultContext diff --git a/templates/post-list.html b/templates/post-list.html index 22336d4..6e26928 100644 --- a/templates/post-list.html +++ b/templates/post-list.html @@ -1,4 +1,4 @@ -