Style frontpage/background

This commit is contained in:
Ariejan de Vroom 2013-03-24 16:18:00 +01:00
parent 25235b4f42
commit cc76334125
4 changed files with 21 additions and 9 deletions

View File

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

View File

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

View File

@ -5,11 +5,12 @@ title: Home
%h2 Ariejan's Blog
.content_wrap.nobg
%section#middle_content
#posts
- articles_by_year.each do |year, articles|
%h2= year
%ol
%ol.posts
- articles.each do |article|
%li
%span.date= article[:created_at]
%span.date= get_short_date(article)
= link_to article[:title], article.path

View File

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