Skip to content

Commit

Permalink
Update card.njk
Browse files Browse the repository at this point in the history
adding if wrapper to only show author profile image when it actually exists
  • Loading branch information
Taurean Bryant authored Aug 21, 2020
1 parent 03c9e56 commit ab42601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_includes/partials/card.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
</div>
<footer class="post-card-footer">
<div class="post-card-footer-left">
{% if post.primary_author.profile_image %}
<div class="post-card-avatar">
<img
class="author-profile-image"
src="{{ post.primary_author.profile_image }}"
alt="{{ post.primary_author.name }}"
/>
</div>
{% endif %}
<span>{{ post.primary_author.name }}</span>
</div>
<div class="post-card-footer-right">
Expand Down

0 comments on commit ab42601

Please sign in to comment.