Skip to content

Commit 8267f61

Browse files
authored
Default image added for articles without images (#540)
1 parent 834210b commit 8267f61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<div class="hero-banner">
66
<img src="{{page.featured_image}}" class="featured-image">
77
</div>
8+
{%- else -%}
9+
<div class="hero-banner">
10+
<img src="/assets/images/bpd_stacked.png" class="featured-image">
11+
</div>
812
{%- endif -%}
913
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
1014

0 commit comments

Comments
 (0)