Style frontpage/background
This commit is contained in:
parent
25235b4f42
commit
cc76334125
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user