Skip to content

Commit

Permalink
Default image added for articles without images (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOsahenru authored Oct 25, 2024
1 parent 834210b commit 8267f61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<div class="hero-banner">
<img src="{{page.featured_image}}" class="featured-image">
</div>
{%- else -%}
<div class="hero-banner">
<img src="/assets/images/bpd_stacked.png" class="featured-image">
</div>
{%- endif -%}
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

Expand Down

0 comments on commit 8267f61

Please sign in to comment.