mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57:38 +00:00
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
14
index.hbs
14
index.hbs
@ -1,13 +1,15 @@
|
|||||||
{{!< default}}
|
{{!< default}}
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<ul class="hfeed">
|
<ul class="hfeed">
|
||||||
{{#features}}
|
{{#foreach posts}}
|
||||||
|
{{#if @first}}
|
||||||
<li class="featured">
|
<li class="featured">
|
||||||
{{> featured}}
|
{{> full-post}}
|
||||||
</li>
|
</li>
|
||||||
{{/features}}
|
{{else}}
|
||||||
{{#posts}}
|
{{> list-post}}
|
||||||
{{> post}}
|
{{/if}}
|
||||||
{{/posts}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{!< default}}
|
{{!< default}}
|
||||||
<section class="content">
|
<section class="content">
|
||||||
{{#post}}
|
{{#post}}
|
||||||
{{> featured}}
|
{{> full-post}}
|
||||||
{{/post}}
|
{{/post}}
|
||||||
</section>
|
</section>
|
Loading…
Reference in New Issue
Block a user