diff --git a/layouts/partials/widgets/hero.html b/layouts/partials/widgets/hero.html index 13fbc30a..f961c4c1 100644 --- a/layouts/partials/widgets/hero.html +++ b/layouts/partials/widgets/hero.html @@ -2,10 +2,10 @@ {{ $page := .page }} {{ $header := $page.Params.header }} -{{/* Compute image path outside of HTML style element due to Hugo limitation. */}} +{{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}} {{ $overlay_img := "" }} {{ if $header.overlay_img }} - {{ $overlay_img = (printf "img/%s" $header.overlay_img) | relURL }} + {{ $overlay_img = printf "img/%s" $header.overlay_img | absURL }} {{end}}