From a54c55171a4b6e0803a889e6461037716c149828 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 16 Aug 2023 20:36:05 +0800 Subject: [PATCH] Fixed highlight header post count --- assets/built/casper.js | 0 partials/components/post-list.hbs | 12 +++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) mode change 100755 => 100644 assets/built/casper.js diff --git a/assets/built/casper.js b/assets/built/casper.js old mode 100755 new mode 100644 diff --git a/partials/components/post-list.hbs b/partials/components/post-list.hbs index c90dd6f..a7bc1ba 100644 --- a/partials/components/post-list.hbs +++ b/partials/components/post-list.hbs @@ -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"}}