Skip to content

Commit 4691984

Browse files
Show featured title even if there's no featured posts
1 parent f6c43f7 commit 4691984

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

partials/components/featured.hbs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{{#if showFeatured}}
22
{{#get "posts" filter="featured:true" include="authors" limit=limit as |featured|}}
3-
{{#if featured}}
4-
<section class="gh-featured gh-outer">
5-
<div class="gh-featured-inner gh-inner">
6-
<h2 class="gh-featured-title">Featured</h2>
7-
<div class="gh-featured-feed">
8-
{{#foreach featured}}
9-
{{> "post-card"}}
10-
{{/foreach}}
11-
</div>
3+
<section class="gh-featured gh-outer">
4+
<div class="gh-featured-inner gh-inner">
5+
<h2 class="gh-featured-title">Featured</h2>
6+
<div class="gh-featured-feed">
7+
{{#foreach featured}}
8+
{{> "post-card"}}
9+
{{/foreach}}
1210
</div>
13-
</section>
14-
{{/if}}
11+
</div>
12+
</section>
1513
{{/get}}
1614
{{/if}}

0 commit comments

Comments
 (0)