X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=index.hbs;h=5a3274566e682052828c947b277dfe29bd262fe8;hb=HEAD;hp=34c99a209acc9f265d7c63ea26b07f9bf9fd0fdd;hpb=8af2079e4b096e77ba2f922d6a18224ce01cb7bd;p=editorial.git diff --git a/index.hbs b/index.hbs index 34c99a2..5a32745 100644 --- a/index.hbs +++ b/index.hbs @@ -2,50 +2,56 @@ {{!-- The tag above means: insert everything in this file into the {body} of the default.hbs template --}} -{{!-- Main --}} -
- - {{!-- Featured Post --}} - {{#get "posts" filter="featured:true" limit="1" as |featured_post|}} - {{#foreach featured_post}} -
-
- {{date format="MMM D, YYYY"}} -

{{title}}

-

{{excerpt words="44"}}

+ +{{!-- Featured Post --}} +{{#is "home"}} +{{#get "posts" filter="featured:true" limit="1" as |featured_post|}} + {{#foreach featured_post}} + - {{/foreach}} - {{/get}} + + {{#if feature_image}} + + {{title}} + + {{/if}} +
+ {{/foreach}} +{{/get}} +{{/is}} - {{!-- Posts --}} -
+{{!-- Posts --}} +
+ +
+

Recent posts

+
+
{{#foreach posts}} {{/foreach}} -
- {{!-- Pagination --}} - {{pagination}} +
+ +{{!-- Pagination --}} +{{pagination}} -
\ No newline at end of file