Skip to content

Commit

Permalink
Fixed author's cover image not showing up
Browse files Browse the repository at this point in the history
no refs.

The author's cover image didn't show up on the theme because the author template used `feature_image` instead of `cover_image`.
  • Loading branch information
peterzimon committed Jan 19, 2023
1 parent e1967f8 commit 31188ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
{{#author}}
<section class="post-card post-card-large">

{{#if feature_image}}
{{#if cover_image}}
<div class="post-card-image-link">
{{!-- This is a responsive image, it loads different sizes depending on device
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
<img class="post-card-image"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1000w,
{{img_url feature_image size="xl"}} 2000w"
srcset="{{img_url cover_image size="s"}} 300w,
{{img_url cover_image size="m"}} 600w,
{{img_url cover_image size="l"}} 1000w,
{{img_url cover_image size="xl"}} 2000w"
sizes="(max-width: 1000px) 400px, 800px"
src="{{img_url feature_image size="m"}}"
src="{{img_url cover_image size="m"}}"
alt="{{title}}"
/>
</div>
Expand Down

0 comments on commit 31188ce

Please sign in to comment.