From c084f016aef4396caaf36a389307a4473a229a58 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 5 Nov 2018 21:16:29 +0000 Subject: [PATCH] fix(widgets): fix hero image path when `canonifyurls=true` --- layouts/partials/widgets/hero.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/widgets/hero.html b/layouts/partials/widgets/hero.html index 078e7953..1656410c 100644 --- a/layouts/partials/widgets/hero.html +++ b/layouts/partials/widgets/hero.html @@ -5,7 +5,7 @@ {{/* Compute image path outside of HTML style element due to Hugo limitation. */}} {{ $overlay_img := "" }} {{ if $header.overlay_img }} - {{ $overlay_img = (printf "img/%s" $header.overlay_img) | relURL }} + {{ $overlay_img = (printf "img/%s" $header.overlay_img) }} {{end}}