more adjustments

This commit is contained in:
nek0 2018-08-18 11:02:40 +02:00
parent a1899f1c48
commit 378130de2e
3 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<ul>
<ul class="postlist">
$for(posts)$
<li>
<a href="$url$">$title$</a> - <time datetime="$datetime$">$date$</time>