mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
0a7f8ea03a
- 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
16 lines
330 B
Handlebars
16 lines
330 B
Handlebars
{{!< default}}
|
|
<section class="content">
|
|
<ul class="hfeed">
|
|
{{#foreach posts}}
|
|
{{#if @first}}
|
|
<li class="featured">
|
|
{{> full-post}}
|
|
</li>
|
|
{{else}}
|
|
{{> list-post}}
|
|
{{/if}}
|
|
{{/foreach}}
|
|
</ul>
|
|
|
|
</section>
|