Skip to content

Commit a54c551

Browse files
Fixed highlight header post count
1 parent ec34530 commit a54c551

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

assets/built/casper.js

100755100644
File mode changed.

partials/components/post-list.hbs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@
2121
{{#match feed "home"}}
2222
{{#match @custom.header_style "Highlight"}}
2323
{{#match posts.length ">=" 10}}
24-
{{#foreach posts from="11" limit="9"}}
25-
{{> "post-card"}}
26-
{{/foreach}}
24+
{{#if @custom.highlight_featured_posts}}
25+
{{#foreach posts from="5" limit="9"}}
26+
{{> "post-card"}}
27+
{{/foreach}}
28+
{{else}}
29+
{{#foreach posts from="11" limit="9"}}
30+
{{> "post-card"}}
31+
{{/foreach}}
32+
{{/if}}
2733
{{else}}
2834
{{#foreach posts limit="9"}}
2935
{{> "post-card"}}

0 commit comments

Comments
 (0)