Browse Source

Only use post-card-large variation if feature_image exists (#764)

master
Paul Davis 3 months ago
committed by GitHub
parent
commit
ca36c4fe91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      partials/post-card.hbs

2
partials/post-card.hbs

@ -1,7 +1,7 @@
{{!-- This is a partial file used to generate a post "card"
which templates loop over to generate a list of posts. --}}
<article class="post-card {{post_class}} {{#is "home"}}{{#has index="0"}}post-card-large{{/has}}{{/is}}">
<article class="post-card {{post_class}} {{#is "home"}}{{#if feature_image}}{{#has index="0"}}post-card-large{{/has}}{{/if}}{{/is}}">
{{#if feature_image}}
<a class="post-card-image-link" href="{{url}}">

Loading…
Cancel
Save