fix: previous commit

This commit is contained in:
George Cushen committed 2021-02-26 16:45:04 +00:00
1 parent 33e92dc8cb
commit 3952bfc85c
1 file changed
+2 -2
+2 -2
View File
@@ -41,10 +41,10 @@
{{ end }}
{{ if $bg.image }}
{{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}}#
{{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}}
{{ $bg_img := resources.Get (printf "media/%s" $bg.image) }}
{{ if $bg_img }}
{{ $style_bg = printf "%sbackground-image: url('%s');" $style_bg .Permalink }}
{{ $style_bg = printf "%sbackground-image: url('%s');" $style_bg $bg_img.Permalink }}
{{ else }}
{{ errorf "Couldn't find `%s` in the `assets/media/` folder - please add it." $bg.image }}
{{ end }}