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:
parent
a319d9051b
commit
0fe91fc202
|
@ -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">
|
||||
|
||||
|
|
Loading…
Reference in a new issue