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;
|
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{
|
pre, .plaincode{
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -13,7 +13,7 @@ Tags: light, white, one-column, two-columns, left-sidebar, right-sidebar, custom
|
||||||
html, body, #page {height:100%;}
|
html, body, #page {height:100%;}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background:url(../images/bgs/01.jpg) repeat-x 50% 0;
|
background:url(../images/bgs/02.jpg) repeat-x 50% 0;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
|
|
|
@ -5,11 +5,12 @@ title: Home
|
||||||
%h2 Ariejan's Blog
|
%h2 Ariejan's Blog
|
||||||
.content_wrap.nobg
|
.content_wrap.nobg
|
||||||
%section#middle_content
|
%section#middle_content
|
||||||
- articles_by_year.each do |year, articles|
|
#posts
|
||||||
%h2= year
|
- articles_by_year.each do |year, articles|
|
||||||
|
%h2= year
|
||||||
|
|
||||||
%ol
|
%ol.posts
|
||||||
- articles.each do |article|
|
- articles.each do |article|
|
||||||
%li
|
%li
|
||||||
%span.date= article[:created_at]
|
%span.date= get_short_date(article)
|
||||||
= link_to article[:title], article.path
|
= link_to article[:title], article.path
|
|
@ -33,8 +33,12 @@ unless defined? LOADED_DEFAULT_CONFIG
|
||||||
end
|
end
|
||||||
|
|
||||||
module PostHelper
|
module PostHelper
|
||||||
|
def get_short_date(post)
|
||||||
|
attribute_to_time(post[:created_at]).strftime('%d %b')
|
||||||
|
end
|
||||||
|
|
||||||
def get_pretty_date(post)
|
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
|
end
|
||||||
|
|
||||||
def get_tags(post)
|
def get_tags(post)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user