From 526b5b1c4986d43d6184671b02f45ca40f041b65 Mon Sep 17 00:00:00 2001 From: Elliot Murphy Date: Thu, 24 Jan 2019 23:19:59 -0500 Subject: [PATCH] Fix OpenGraph image fallback to site params Signed-off-by: Elliot Murphy --- tpl/tplimpl/embedded/templates.autogen.go | 2 +- tpl/tplimpl/embedded/templates/opengraph.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index c0a82bc6a..ed9ba35ac 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 0cc9a213c..8e4fb8115 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 }}