We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6528f1e commit 4586b69Copy full SHA for 4586b69
partials/loop.hbs
@@ -1,8 +1,8 @@
1
{{! This is the post loop - each post will be output using this markup }}
2
{{#foreach posts}}
3
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}}">
+{{!-- Add a `featured` class to the first post on each page, if it has an image and isn't already featured --}}
+<article class="{{post_class}} {{#if @first}}{{#if image}}{{#unless featured}}featured{{/unless}}{{/if}}{{/if}}">
6
7
{{#if image}}
8
<div class="image-holder">
0 commit comments