diff --git a/content/css/screen.sass b/content/css/screen.sass index 2e31d2a..8a53eb5 100644 --- a/content/css/screen.sass +++ b/content/css/screen.sass @@ -59,7 +59,7 @@ h1, h2, h3, h4, h5, h6 #main #adpacks - text-align: right + width: 130px font-size: 0.8em .bsa_it_i @@ -72,7 +72,6 @@ h1, h2, h3, h4, h5, h6 .bsa_it_d display: inline-block clear: right - text-align: right width: 130px margin-bottom: 10px @@ -107,7 +106,6 @@ h1, h2, h3, h4, h5, h6 margin-bottom: 10px margin-left: 72px font-size: 1.2em - display: inline-block span.meta margin-left: -72px @@ -130,6 +128,26 @@ h1, h2, h3, h4, h5, h6 margin-top: 20px margin-bottom: 0 + #recent-posts + h4.title + clear: left + margin-top: 0 + margin-bottom: 10px + margin-left: 64px + font-size: 1em + + span.meta + margin-left: -64px + color: $text-color + font-size: 0.8em + padding-top: 0.2em + display: inline-block + float: left + + + #comments + margin-top: 20px + .page h1.title margin-top: 20px @@ -143,6 +161,8 @@ h1, h2, h3, h4, h5, h6 float: right #footer + margin-top: 20px + ul.tla padding-left: 0 font-size: 0.8em diff --git a/content/index.haml b/content/index.haml index 841cd13..5813d9a 100644 --- a/content/index.haml +++ b/content/index.haml @@ -12,19 +12,7 @@ title: blog %p.summary= article[:summary] .row - .col-sm-6 - %h3 Older posts - - #older-posts - - sorted_articles[3..-1].each do |article| - .post - %h2.title - %a{href: article.path, title: article[:title]} - %span.meta= get_short_date(article) - = article[:title] - - - .col-sm-6 + .col-sm-6.col-sm-push-6 #about %h3 About me :markdown @@ -49,3 +37,16 @@ title: blog [5]: http://www.linkedin.com/in/ariejan [6]: https://github.com/ariejan [8]: mailto:ariejan@ariejan.net + + .col-sm-6.col-sm-pull-6 + %h3 Older posts + + #older-posts + - sorted_articles[3..-1].each do |article| + .post + %h2.title + %a{href: article.path, title: article[:title]} + %span.meta= get_short_date(article) + = article[:title] + + diff --git a/layouts/post.haml b/layouts/post.haml index c85d26a..2c95ef5 100644 --- a/layouts/post.haml +++ b/layouts/post.haml @@ -10,6 +10,15 @@ .body = yield + #recent-posts + %h3 Recent posts on ariejan.net + - sorted_articles[0..4].each do |article| + %h4.title + %a{href: article.path, title: article[:title]} + %span.meta= get_short_date(article) + = article[:title] + + #comments #disqus_thread