From 97ad2797b2e0352c49cc7ed387db7e548bf037a6 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Wed, 10 Mar 2010 20:04:08 +1100 Subject: [PATCH] Use common head partial in all layouts --- layouts/default.html | 7 +------ layouts/home.html | 11 +++-------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/layouts/default.html b/layouts/default.html index 2393265..e672223 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -1,12 +1,7 @@ - - - <%= @item[:title] %> - - - + <%= render '_head' %> > <%= render '_header' %> diff --git a/layouts/home.html b/layouts/home.html index ef91149..ff48ae9 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,13 +1,8 @@ - - - <%= @item[:title] %> - - + <%= render '_head' %> - @@ -19,7 +14,7 @@

Geeky - +

    <% technical_articles[0..4].each do |article| %> @@ -33,7 +28,7 @@

    Non-Geeky - +

      <% personal_articles[0..4].each do |article| %>