Show featured title even if there's no featured posts

This commit is contained in:
Sodbileg Gansukh 2023-08-22 17:44:26 +08:00
parent f6c43f7096
commit 4691984a01

View File

@ -1,16 +1,14 @@
{{#if showFeatured}} {{#if showFeatured}}
{{#get "posts" filter="featured:true" include="authors" limit=limit as |featured|}} {{#get "posts" filter="featured:true" include="authors" limit=limit as |featured|}}
{{#if featured}} <section class="gh-featured gh-outer">
<section class="gh-featured gh-outer"> <div class="gh-featured-inner gh-inner">
<div class="gh-featured-inner gh-inner"> <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}} {{> "post-card"}}
{{> "post-card"}} {{/foreach}}
{{/foreach}}
</div>
</div> </div>
</section> </div>
{{/if}} </section>
{{/get}} {{/get}}
{{/if}} {{/if}}