From 11a859dca292a18323d4b9a8ad38d2a359941009 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 4 Feb 2019 01:37:42 +0000 Subject: [PATCH] fix: Hero and Carousel image path in edge cases Fix #910 --- layouts/partials/widgets/hero.html | 4 ++-- layouts/partials/widgets/hero_carousel.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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}}