- {{#match @custom.header_style "Highlight"}}
- {{#match posts.length ">=" 10}}
- {{#foreach posts from="11" limit="9"}}
- {{> "post-card"}}
- {{/foreach}}
+
+ {{#match feed "home"}}
+ {{#match @custom.header_style "Highlight"}}
+ {{#match posts.length ">=" 10}}
+ {{#foreach posts from="11" limit="9"}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{else}}
+ {{#foreach posts limit="9"}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{/match}}
+ {{else match @custom.header_style "Magazine"}}
+ {{#match posts.length ">=" 7}}
+ {{#foreach posts from="8" limit="9"}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{else}}
+ {{#foreach posts limit="9"}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{/match}}
{{else}}
{{#foreach posts limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
- {{else match @custom.header_style "Magazine"}}
- {{#match posts.length ">=" 7}}
- {{#foreach posts from="8" limit="9"}}
- {{> "post-card"}}
- {{/foreach}}
- {{else}}
- {{#foreach posts limit="9"}}
- {{> "post-card"}}
- {{/foreach}}
+ {{/match}}
+
+ {{#match feed "index"}}
+ {{#match pagination.page 2}}
+ {{#get "posts" include="authors" limit=@config.posts_per_page as |recent|}}
+ {{#foreach recent}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{/get}}
{{/match}}
- {{else}}
- {{#foreach posts limit="9"}}
+ {{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
+
+ {{#match feed "archive"}}
+ {{#foreach posts}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{/match}}
+
+ {{#match feed "recent"}}
+ {{#get "posts" include="authors" filter="id:-{{post.id}}" limit="4" as |next|}}
+ {{#foreach next}}
+ {{> "post-card"}}
+ {{/foreach}}
+ {{/get}}
+ {{/match}}
+
- {{#if @custom.show_sidebar}}
+ {{#if showSidebar}}