From 65d2bcf0a6891db9f10e4285e77e166c9960acac Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Thu, 4 Feb 2010 13:37:15 +1100 Subject: [PATCH] Rename partials --- layouts/_article.html | 12 ++++++++++++ layouts/{footer.yaml => _article.yaml} | 0 layouts/{footer.html => _footer.html} | 0 layouts/{head_common.yaml => _footer.yaml} | 0 layouts/{head_common.html => _head.html} | 0 layouts/{header.yaml => _head.yaml} | 0 layouts/{header.html => _header.html} | 0 layouts/{listing.yaml => _header.yaml} | 0 layouts/{listing.html => _listing.html} | 4 ++-- layouts/_listing.yaml | 2 ++ 10 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 layouts/_article.html rename layouts/{footer.yaml => _article.yaml} (100%) rename layouts/{footer.html => _footer.html} (100%) rename layouts/{head_common.yaml => _footer.yaml} (100%) rename layouts/{head_common.html => _head.html} (100%) rename layouts/{header.yaml => _head.yaml} (100%) rename layouts/{header.html => _header.html} (100%) rename layouts/{listing.yaml => _header.yaml} (100%) rename layouts/{listing.html => _listing.html} (98%) create mode 100644 layouts/_listing.yaml diff --git a/layouts/_article.html b/layouts/_article.html new file mode 100644 index 0000000..72bf4d4 --- /dev/null +++ b/layouts/_article.html @@ -0,0 +1,12 @@ +<% post_date = WezM::Helpers.post_date(@article) %> +
  • + + <%= post_date.day %> + <%= post_date.strftime('%b') %> + <%= post_date.year %> + +

    + <%= @article[:title] %> + <%= @item[:summary] %> +

    +
  • diff --git a/layouts/footer.yaml b/layouts/_article.yaml similarity index 100% rename from layouts/footer.yaml rename to layouts/_article.yaml diff --git a/layouts/footer.html b/layouts/_footer.html similarity index 100% rename from layouts/footer.html rename to layouts/_footer.html diff --git a/layouts/head_common.yaml b/layouts/_footer.yaml similarity index 100% rename from layouts/head_common.yaml rename to layouts/_footer.yaml diff --git a/layouts/head_common.html b/layouts/_head.html similarity index 100% rename from layouts/head_common.html rename to layouts/_head.html diff --git a/layouts/header.yaml b/layouts/_head.yaml similarity index 100% rename from layouts/header.yaml rename to layouts/_head.yaml diff --git a/layouts/header.html b/layouts/_header.html similarity index 100% rename from layouts/header.html rename to layouts/_header.html diff --git a/layouts/listing.yaml b/layouts/_header.yaml similarity index 100% rename from layouts/listing.yaml rename to layouts/_header.yaml diff --git a/layouts/listing.html b/layouts/_listing.html similarity index 98% rename from layouts/listing.html rename to layouts/_listing.html index 77e1d97..94125b0 100644 --- a/layouts/listing.html +++ b/layouts/_listing.html @@ -13,7 +13,7 @@ - <%= render 'header' %> + <%= render '_header' %>

    Geeky @@ -85,6 +85,6 @@ | Older »

    - <%= render 'footer' %> + <%= render '_footer' %> diff --git a/layouts/_listing.yaml b/layouts/_listing.yaml new file mode 100644 index 0000000..20670d5 --- /dev/null +++ b/layouts/_listing.yaml @@ -0,0 +1,2 @@ +--- {} +