Skip to content

Commit

Permalink
Changed posts limit on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
sanne-san committed Apr 15, 2024
1 parent 2461c5c commit 5f21c86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions partials/components/post-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
{{#if @custom.show_featured_posts}}
{{#match posts.length ">=" 4}}
{{#get "posts" include="tags,authors" limit="16"}}
{{#foreach posts from="5" limit="12"}}
{{#foreach posts from="5" limit="24"}}
{{> "post-card" lazyLoad=true}}
{{/foreach}}
{{/get}}
{{/match}}
{{else}}
{{#match posts.length ">=" 10}}
{{#get "posts" include="tags,authors" limit="22"}}
{{#foreach posts from="11" limit="12"}}
{{#foreach posts from="11" limit="24"}}
{{> "post-card" lazyLoad=true}}
{{/foreach}}
{{/get}}
Expand All @@ -41,13 +41,13 @@
{{else match @custom.header_style "Magazine"}}
{{#match posts.length ">=" 7}}
{{#get "posts" include="tags,authors" limit="19"}}
{{#foreach posts from="8" limit="12"}}
{{#foreach posts from="8" limit="24"}}
{{> "post-card" lazyLoad=true}}
{{/foreach}}
{{/get}}
{{/match}}
{{else}}
{{#get "posts" include="tags,authors" limit="20"}}
{{#get "posts" include="tags,authors" limit="24"}}
{{#foreach posts}}
{{> "post-card" lazyLoad=true}}
{{/foreach}}
Expand Down

0 comments on commit 5f21c86

Please sign in to comment.