From 37751b60529c8e4ccad2075b5d1354c8107609f1 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Fri, 5 Feb 2010 13:53:29 +1100 Subject: [PATCH] Add date and tidy up respond section of article --- layouts/_article.html | 2 +- layouts/article.html | 10 ++++++++++ lib/helpers.rb | 2 +- output/css/style.css | 15 ++++++++++++++- output/images/comment32.png | Bin 0 -> 302 bytes 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100755 output/images/comment32.png diff --git a/layouts/_article.html b/layouts/_article.html index 72bf4d4..bc9bc17 100644 --- a/layouts/_article.html +++ b/layouts/_article.html @@ -1,4 +1,4 @@ -<% post_date = WezM::Helpers.post_date(@article) %> +<% post_date = WezM::Helpers.parse_post_date(@article) %>
  • <%= post_date.day %> diff --git a/layouts/article.html b/layouts/article.html index 77dd37e..44eb2c4 100644 --- a/layouts/article.html +++ b/layouts/article.html @@ -1,3 +1,13 @@ +<% post_date = WezM::Helpers.parse_post_date(@item) %> +
    + Published on + + <%= post_date.strftime('%a') %>, + <%= post_date.day %> + <%= post_date.strftime('%B') %> + <%= post_date.year %> + +
    <%= yield %> <% short = short_url("http://www.wezm.net#{@item.identifier}") %>
    diff --git a/lib/helpers.rb b/lib/helpers.rb index c091154..885b122 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -3,7 +3,7 @@ require 'time' module WezM module Helpers - def self.post_date(article) + def self.parse_post_date(article) Time.parse(article[:created_at]) end diff --git a/output/css/style.css b/output/css/style.css index da83bf5..e36c69a 100644 --- a/output/css/style.css +++ b/output/css/style.css @@ -280,6 +280,19 @@ ul.inline li:first-child { height: 19px; } +/* Extra parts on post page */ .respond { - border-top: 1px solid gray; +/* border-top: 1px solid gray;*/ } +.respond h2 { + padding-left: 42px; + line-height: 32px; + background: url(/images/comment32.png) no-repeat top left; +} +.published { + font-family: "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif; + color: #999; +/* margin-top: -3px;*/ + padding-bottom: 10px; + font-size: 14px; +} \ No newline at end of file diff --git a/output/images/comment32.png b/output/images/comment32.png new file mode 100755 index 0000000000000000000000000000000000000000..906b77eb81192d7f94214f4a77cedd2e84a57243 GIT binary patch literal 302 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmSQK*5Dp-y;YjHK@;M7UB8wRq zxP?HN@zUM8KR`jT64!_l=c3falFa-(g^b?rg(Vb+2!(Qjg@j;Lm#d@e6^OnfrY{H`T6?`rzjoJ<1{f{HFekWxAPnrSRkmu z`oL1zX!gl*(()^}>oi_Gt#ZJwaGey)3 iu|7C!r?~%qpY~-5lk}>W2Gf8pV(@hJb6Mw<&;$Tfv1btg literal 0 HcmV?d00001