Renamed loop partial

This commit is contained in:
Sodbileg Gansukh 2023-07-30 18:48:03 +08:00
parent 59eaa0663c
commit 86d501e32b
11 changed files with 16 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,7 @@ X. Footer
:root {
--color-white: #fff;
--color-lighter-gray: #f6f6f6;
--color-lighter-gray: rgba(0,0,0,0.05);
--color-light-gray: #e6e6e6;
--color-mid-gray: #ccc;
--color-dark-gray: #444;

View File

@ -42,7 +42,7 @@
<main class="gh-main">
<div class="gh-feed">
{{#foreach posts}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
</main>

View File

@ -6,7 +6,7 @@
<h2 class="gh-featured-title">Featured</h2>
<div class="gh-featured-feed">
{{#foreach featured}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
</div>

View File

@ -23,7 +23,7 @@
{{#match @number 5}}
<div class="gh-header-right">
{{/match}}
{{> "loop"}}
{{> "post-card"}}
{{#match @number 4}}
</div>
{{/match}}
@ -38,7 +38,7 @@
{{#if @custom.show_featured}}
<div class="gh-header-left">
{{#foreach posts limit="4"}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
<div class="gh-header-right">
@ -46,7 +46,7 @@
</div>
{{else}}
{{#foreach posts limit="4"}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
{{/if}}
{{/match}}

View File

@ -6,7 +6,7 @@
<main class="gh-main">
<div class="gh-feed">
{{#foreach posts from="8" limit="9"}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
</main>

View File

@ -4,7 +4,7 @@
<div class="gh-feed">
{{#get "posts" include="authors" filter="id:-{{post.id}}" limit="3" as |next|}}
{{#foreach next}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
{{/get}}
</div>

View File

@ -27,7 +27,7 @@
<main class="gh-main">
<div class="gh-feed">
{{#foreach posts}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
</main>

View File

@ -21,7 +21,7 @@
<main class="gh-main">
<div class="gh-feed">
{{#foreach posts}}
{{> "loop"}}
{{> "post-card"}}
{{/foreach}}
</div>
</main>