fix(header_image): remote relURL to make this work when hosted in a subdir

See https://github.com/gohugoio/hugoThemes/issues/881#issuecomment-667532072
This commit is contained in:
Jan Raasch 2020-08-01 15:48:07 +02:00
parent a319d9051b
commit 0fe91fc202

View file

@ -1,7 +1,7 @@
{{ define "main" }}
{{ $headless := .Site.GetPage "/homepage" }}
{{ $sections := $headless.Resources.ByType "page" }}
<header id="site-head" {{ with .Params.header_image }}style="background-image: url({{ . | relURL }})"{{ end }}>
<header id="site-head" {{ with .Params.header_image }}style="background-image: url({{ . }})"{{ end }}>
<div class="vertical">
<div id="site-head-content" class="inner">