Skip to content

Commit

Permalink
Reorder homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Jan 21, 2024
1 parent 3b4a2a9 commit c6a6298
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions home.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</h2>

<div class="gh-topic-content">
{{#foreach posts limit="7"}}
{{#foreach posts limit="3"}}
{{> "loop-grid"}}
{{/foreach}}
</div>
Expand All @@ -24,22 +24,6 @@
</footer>
</section>

{{#if @custom.enter_tag_slugs_for_primary_sections}}
{{#get "tags" filter="slug:[{{@custom.enter_tag_slugs_for_primary_sections}}]"}}
{{#foreach tags}}
{{> "topic-grid"}}
{{/foreach}}
{{/get}}
{{else}}
{{#match posts.length ">" 1}}
{{#get "tags" include="count.posts" order="count.posts desc" limit="3"}}
{{#foreach tags}}
{{> "topic-grid"}}
{{/foreach}}
{{/get}}
{{/match}}
{{/if}}

{{#if @custom.enter_tag_slugs_for_secondary_sections}}
{{#get "tags" filter="slug:[{{@custom.enter_tag_slugs_for_secondary_sections}}]"}}
{{#if tags}}
Expand All @@ -63,5 +47,22 @@
{{/get}}
{{/match}}
{{/if}}

{{#if @custom.enter_tag_slugs_for_primary_sections}}
{{#get "tags" filter="slug:[{{@custom.enter_tag_slugs_for_primary_sections}}]"}}
{{#foreach tags}}
{{> "topic-grid"}}
{{/foreach}}
{{/get}}
{{else}}
{{#match posts.length ">" 1}}
{{#get "tags" include="count.posts" order="count.posts desc" limit="3"}}
{{#foreach tags}}
{{> "topic-grid"}}
{{/foreach}}
{{/get}}
{{/match}}
{{/if}}

</div>
</main>
</main>

0 comments on commit c6a6298

Please sign in to comment.