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 @@ -