From: Elliot Murphy Date: Fri, 25 Jan 2019 04:19:59 +0000 (-0500) Subject: Fix OpenGraph image fallback to site params X-Git-Tag: v0.54.0~18 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=526b5b1c4;p=brevno-suite%2Fhugo Fix OpenGraph image fallback to site params Signed-off-by: Elliot Murphy --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index c0a82bc6..ed9ba35a 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -175,7 +175,7 @@ if (!doNotTrack) { -{{- with .Params.images }}{{ range first 6 . }} +{{ with $.Param "images" }}{{ range first 6 . }} {{ end }}{{ end }} diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html index 0cc9a213..8e4fb811 100644 --- a/tpl/tplimpl/embedded/templates/opengraph.html +++ b/tpl/tplimpl/embedded/templates/opengraph.html @@ -2,7 +2,7 @@ -{{- with .Params.images }}{{ range first 6 . }} +{{ with $.Param "images" }}{{ range first 6 . }} {{ end }}{{ end }}