Fixed highlight header post count

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

0
assets/built/casper.js Executable file → Normal file
View File

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"}}