From cebe17fde4eb3c46120193a324a3262d95d4b817 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sun, 22 Nov 2009 18:02:22 +1100 Subject: [PATCH] Add more headers, feed icon, date helpers --- layouts/default.html | 2 +- layouts/header.html | 6 ++++-- layouts/listing.html | 18 +++++++++++++++++- lib/helpers.rb | 11 +++++++++++ output/css/style.css | 11 ++++++++++- output/images/feed-icon-14x14.png | Bin 0 -> 689 bytes 6 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 lib/helpers.rb create mode 100755 output/images/feed-icon-14x14.png diff --git a/layouts/default.html b/layouts/default.html index 1020a8a..1423bfe 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -11,7 +11,7 @@ <%= render 'header' %>
-

<%= @item[:title] %>

+

<%= @item[:title] %>

<%= yield %>
<%= render 'footer' %> diff --git a/layouts/header.html b/layouts/header.html index 16ad63f..5125a64 100644 --- a/layouts/header.html +++ b/layouts/header.html @@ -1,11 +1,13 @@ diff --git a/layouts/listing.html b/layouts/listing.html index 82baf13..b4b637e 100644 --- a/layouts/listing.html +++ b/layouts/listing.html @@ -11,9 +11,25 @@ <%= render 'header' %>
+ + +
<%= render 'footer' %> diff --git a/lib/helpers.rb b/lib/helpers.rb new file mode 100644 index 0000000..c091154 --- /dev/null +++ b/lib/helpers.rb @@ -0,0 +1,11 @@ +require 'time' + +module WezM + module Helpers + + def self.post_date(article) + Time.parse(article[:created_at]) + end + + end +end diff --git a/output/css/style.css b/output/css/style.css index 178d305..e01e273 100644 --- a/output/css/style.css +++ b/output/css/style.css @@ -12,7 +12,7 @@ body { } p,li { - font-size: 1.4em; + font-size: 1.6em; line-height: 1.2; } @@ -72,6 +72,15 @@ a:hover { /* color: #f90;*/ } +h1 a { + text-decoration: none; +} + +h1 a:link, +h1 a:visited { + color: #111; +} + sup { vertical-align: super; font-size: 0.8em; diff --git a/output/images/feed-icon-14x14.png b/output/images/feed-icon-14x14.png new file mode 100755 index 0000000000000000000000000000000000000000..b3c949d2244f2c0c81d65e74719af2a1b56d06a3 GIT binary patch literal 689 zcmV;i0#5yjP)(tky!*UETcH-TCU7SrqEjJM#?B`_A)!p7(kFf9-P@=@15kkTkGK zgFusyy#KECqZzRdBLb=P?$(kUP;>kYTDeG&{|a+iOiRbI6nbQ)j#7bOf>iF=C+|_py<&Fo1F5cC*iEM?zZGC{ejNg4LWYp=S$L6Qaby6y zp$+F`250{%tU{Lg$5*ROH}y!1UKJS4*xqd7P(Y3JQF?lrnf?yerr%&6yGXLG1ur*B z{$&R1@Oj)yl@%rY5rh?j(j10Yz_DBs`AKFU_QnB;)(aqQmGi&ieOS|21^NP9UMpa< zU&p!f6RZ6Owp^X!EXA=0SbN&h?CrQK%Q3(=YBqqHD^9ZUM0Hxt-6-KT;>lf@j?Z+v zHm(}`>85I&E<7e}oz?6UwjAogowzGO8kSN7+2`b^$Az9L{K5*ko87EV45LT-`_##3 z>d3AGh@>=mbg34|6}+-gT9N+6Dr@44VEl44O&{&|w=qpbzC#iWMKa?5)>tI+KLQK@ Xq0QFqn(9Yl00000NkvXXu0mjfZ8t