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
This commit is contained in:
cobbspur 2013-06-16 15:54:30 +01:00
parent 35dc0ea797
commit 0a7f8ea03a
4 changed files with 11 additions and 9 deletions

View file

@ -1,13 +1,15 @@
{{!< default}} {{!< default}}
<section class="content"> <section class="content">
<ul class="hfeed"> <ul class="hfeed">
{{#features}} {{#foreach posts}}
<li class="featured"> {{#if @first}}
{{> featured}} <li class="featured">
</li> {{> full-post}}
{{/features}} </li>
{{#posts}} {{else}}
{{> post}} {{> list-post}}
{{/posts}} {{/if}}
{{/foreach}}
</ul> </ul>
</section> </section>

View file

@ -1,6 +1,6 @@
{{!< default}} {{!< default}}
<section class="content"> <section class="content">
{{#post}} {{#post}}
{{> featured}} {{> full-post}}
{{/post}} {{/post}}
</section> </section>