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 { :root {
--color-white: #fff; --color-white: #fff;
--color-lighter-gray: #f6f6f6; --color-lighter-gray: rgba(0,0,0,0.05);
--color-light-gray: #e6e6e6; --color-light-gray: #e6e6e6;
--color-mid-gray: #ccc; --color-mid-gray: #ccc;
--color-dark-gray: #444; --color-dark-gray: #444;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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