Fixed highlight header post count

This commit is contained in:
Sodbileg Gansukh committed 2023-08-16 20:36:05 +08:00
1 parent ec34530601
commit a54c55171a
2 files changed
+9 -3

No files matched your search

Executable → Regular
View File
File mode changed.
+9 -3
View File
@@ -21,9 +21,15 @@
{{#match feed "home"}}
{{#match @custom.header_style "Highlight"}}
{{#match posts.length ">=" 10}}
{{#foreach posts from="11" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{#if @custom.highlight_featured_posts}}
{{#foreach posts from="5" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{else}}
{{#foreach posts from="11" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{/if}}
{{else}}
{{#foreach posts limit="9"}}
{{> "post-card"}}