more adjustments
This commit is contained in:
parent
a1899f1c48
commit
378130de2e
3 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<ul>
|
||||
<ul class="postlist">
|
||||
$for(posts)$
|
||||
<li>
|
||||
<a href="$url$">$title$</a> - <time datetime="$datetime$">$date$</time>
|
||||
|
|
Loading…
Reference in a new issue