diff --git a/content/css/_main.scss b/content/css/_main.scss index d9d5ff4..a5036b9 100644 --- a/content/css/_main.scss +++ b/content/css/_main.scss @@ -2,6 +2,13 @@ body { font: 14px/20px "Open Sans", Helvetica, "Nimbus Sans L", sans-serif; } +ol.posts { + list-style-type: none; + list-style-image: none; + padding: 0; + margin: 0; +} + pre, .plaincode{ background: none; border: none; diff --git a/content/css/_willbridge.scss b/content/css/_willbridge.scss index 708a0ee..6d43cfe 100644 --- a/content/css/_willbridge.scss +++ b/content/css/_willbridge.scss @@ -13,7 +13,7 @@ Tags: light, white, one-column, two-columns, left-sidebar, right-sidebar, custom html, body, #page {height:100%;} body { - background:url(../images/bgs/01.jpg) repeat-x 50% 0; + background:url(../images/bgs/02.jpg) repeat-x 50% 0; text-align:left; margin:0; padding:0; diff --git a/content/index.haml b/content/index.haml index 010ed0b..6d7ca7b 100644 --- a/content/index.haml +++ b/content/index.haml @@ -5,11 +5,12 @@ title: Home %h2 Ariejan's Blog .content_wrap.nobg %section#middle_content - - articles_by_year.each do |year, articles| - %h2= year + #posts + - articles_by_year.each do |year, articles| + %h2= year - %ol - - articles.each do |article| - %li - %span.date= article[:created_at] - = link_to article[:title], article.path + %ol.posts + - articles.each do |article| + %li + %span.date= get_short_date(article) + = link_to article[:title], article.path \ No newline at end of file diff --git a/lib/default.rb b/lib/default.rb index 35a70cc..b2743bc 100644 --- a/lib/default.rb +++ b/lib/default.rb @@ -33,8 +33,12 @@ unless defined? LOADED_DEFAULT_CONFIG end module PostHelper + def get_short_date(post) + attribute_to_time(post[:created_at]).strftime('%d %b') + end + def get_pretty_date(post) - attribute_to_time(post[:created_at]).strftime('%B %-d, %Y') + attribute_to_time(post[:created_at]).strftime('%-d %B, %Y') end def get_tags(post)