From 0a7f8ea03a936dd0f2eaa764d29aefa4fb39f99c Mon Sep 17 00:00:00 2001 From: cobbspur Date: Sun, 16 Jun 2013 15:54:30 +0100 Subject: [PATCH] closes #1 - removing featured - changed post.hbs to list-post.hbs and refactored code - changed featured.hbs to full-post.hbs and refactored code - index.hbs now selects first post and extends full-post then list-post on remaining posts - single.hbs now extends full-post --- index.hbs | 18 ++++++++++-------- partials/{featured.hbs => full-post.hbs} | 0 partials/{post.hbs => list-post.hbs} | 0 single.hbs | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) rename partials/{featured.hbs => full-post.hbs} (100%) rename partials/{post.hbs => list-post.hbs} (100%) diff --git a/index.hbs b/index.hbs index 1bf87ad..927ce5c 100644 --- a/index.hbs +++ b/index.hbs @@ -1,13 +1,15 @@ {{!< default}}
+
diff --git a/partials/featured.hbs b/partials/full-post.hbs similarity index 100% rename from partials/featured.hbs rename to partials/full-post.hbs diff --git a/partials/post.hbs b/partials/list-post.hbs similarity index 100% rename from partials/post.hbs rename to partials/list-post.hbs diff --git a/single.hbs b/single.hbs index be5cd93..d2668cc 100644 --- a/single.hbs +++ b/single.hbs @@ -1,6 +1,6 @@ {{!< default}}
{{#post}} - {{> featured}} + {{> full-post}} {{/post}}
\ No newline at end of file