Skip to content

Commit

Permalink
Add a featured class to the first post on each page, if it has an i…
Browse files Browse the repository at this point in the history
…mage
  • Loading branch information
PaulAdamDavis committed Jan 8, 2015
1 parent 985bc7f commit d1ed4fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion partials/loop.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{! This is the post loop - each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">

{{!-- Add a `featured` class to the first post on each page, if it has an image --}}
<article class="{{post_class}} {{#if @first}}{{#if image}}featured{{/if}}{{/if}}">

{{#if image}}
<div class="image-holder show">
Expand Down

0 comments on commit d1ed4fc

Please sign in to comment.