Archive page

This commit is contained in:
Sodbileg Gansukh
2023-07-31 17:26:56 +08:00
parent c5a6870fcf
commit be114956d9
8 changed files with 150 additions and 123 deletions

View File

@@ -5,9 +5,19 @@
<main class="gh-main">
<div class="gh-feed">
{{#foreach posts from="8" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{#match @custom.header_style "Highlight"}}
{{#foreach posts from="11" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{else match @custom.header_style "Magazine"}}
{{#foreach posts from="8" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{else}}
{{#foreach posts limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
</div>
</main>
@@ -30,5 +40,9 @@
</aside>
{{/if}}
<div class="gh-more">
<a href="/page/2">See all →</a>
</div>
</div>
</section>