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;
|
padding: 20px;
|
||||||
margin-left: 300px;
|
margin-left: 300px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-width: 100ex;
|
max-width: 80em;
|
||||||
}
|
}
|
||||||
|
|
||||||
article a:hover{
|
article a:hover{
|
||||||
|
@ -324,8 +324,6 @@ h2 {
|
||||||
margin: 30px;
|
margin: 30px;
|
||||||
/* padding */
|
/* padding */
|
||||||
padding: 50px;
|
padding: 50px;
|
||||||
/* limit width */
|
|
||||||
max-width: 700px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.scripture p {
|
.scripture p {
|
||||||
|
@ -344,6 +342,10 @@ h2 {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.postlist {
|
||||||
|
columns: 2;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px){
|
@media screen and (max-width: 600px){
|
||||||
.sidebar{
|
.sidebar{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -46,7 +46,7 @@ main =
|
||||||
match "site/index.md" $ do
|
match "site/index.md" $ do
|
||||||
route $ myRoute `composeRoutes` setExtension "html"
|
route $ myRoute `composeRoutes` setExtension "html"
|
||||||
compile $ do
|
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) <>
|
let indexCtx = listField "posts" (postCtx tags) (return posts) <>
|
||||||
constField "title" "Home" <>
|
constField "title" "Home" <>
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<ul>
|
<ul class="postlist">
|
||||||
$for(posts)$
|
$for(posts)$
|
||||||
<li>
|
<li>
|
||||||
<a href="$url$">$title$</a> - <time datetime="$datetime$">$date$</time>
|
<a href="$url$">$title$</a> - <time datetime="$datetime$">$date$</time>
|
||||||
|
|
Loading…
Reference in a new issue