4-column grid layout when there's no sidebar

This commit is contained in:
Sodbileg Gansukh
2023-09-04 19:44:58 +08:00
parent fd045956e8
commit 301b29086e
4 changed files with 16 additions and 11 deletions

View File

@@ -22,31 +22,31 @@
{{#match @custom.header_style "Highlight"}}
{{#match posts.length ">=" 10}}
{{#if @custom.highlight_featured_posts}}
{{#foreach posts from="5" limit="9"}}
{{#foreach posts from="5" limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{else}}
{{#foreach posts from="11" limit="9"}}
{{#foreach posts from="11" limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{/if}}
{{else}}
{{#foreach posts limit="9"}}
{{#foreach posts limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
{{else match @custom.header_style "Magazine"}}
{{#match posts.length ">=" 7}}
{{#foreach posts from="8" limit="9"}}
{{#foreach posts from="8" limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{else}}
{{#foreach posts limit="9"}}
{{#foreach posts limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
{{else}}
{{#foreach posts limit="9"}}
{{#foreach posts limit="8"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}