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:
parent
35dc0ea797
commit
0a7f8ea03a
4 changed files with 11 additions and 9 deletions
14
index.hbs
14
index.hbs
|
@ -1,13 +1,15 @@
|
|||
{{!< default}}
|
||||
<section class="content">
|
||||
<ul class="hfeed">
|
||||
{{#features}}
|
||||
{{#foreach posts}}
|
||||
{{#if @first}}
|
||||
<li class="featured">
|
||||
{{> featured}}
|
||||
{{> full-post}}
|
||||
</li>
|
||||
{{/features}}
|
||||
{{#posts}}
|
||||
{{> post}}
|
||||
{{/posts}}
|
||||
{{else}}
|
||||
{{> list-post}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{!< default}}
|
||||
<section class="content">
|
||||
{{#post}}
|
||||
{{> featured}}
|
||||
{{> full-post}}
|
||||
{{/post}}
|
||||
</section>
|
Loading…
Reference in a new issue