Use predefined header image if not set
This commit is contained in:
parent
d9ffe631ee
commit
4bee95386b
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . | default "/images/banner.jpg" }}
|
||||
{{ if $featured_image }}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
||||
|
|
Loading…
Add table
Reference in a new issue