Skip to content

Commit 4586b69

Browse files
committed
Only add 'featured' class if post isn't already featured
Related to d1ed4fc
1 parent 6528f1e commit 4586b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

partials/loop.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{! This is the post loop - each post will be output using this markup }}
22
{{#foreach posts}}
33

4-
{{!-- Add a `featured` class to the first post on each page, if it has an image --}}
5-
<article class="{{post_class}} {{#if @first}}{{#if image}}featured{{/if}}{{/if}}">
4+
{{!-- Add a `featured` class to the first post on each page, if it has an image and isn't already featured --}}
5+
<article class="{{post_class}} {{#if @first}}{{#if image}}{{#unless featured}}featured{{/unless}}{{/if}}{{/if}}">
66

77
{{#if image}}
88
<div class="image-holder">

0 commit comments

Comments
 (0)