From f6745ad3588a7b3aaae228fec18fe0027affd566 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 18 Mar 2021 11:49:16 -0700 Subject: [PATCH] Remove .Site.Authors from embedded templates Closes #4458 --- tpl/tplimpl/embedded/templates.autogen.go | 14 +------------- tpl/tplimpl/embedded/templates/opengraph.html | 8 -------- tpl/tplimpl/embedded/templates/twitter_cards.html | 5 ----- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 2da6e619eef..e4cd6992168 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -226,14 +226,6 @@ if (!doNotTrack) { {{ with .PublishDate }}{{ end }} {{ with .Lastmod }}{{ end }} - -{{- range .Site.Authors }} -{{ with .Social.facebook }}{{ end }} -{{ with .Site.Social.facebook }}{{ end }} -{{- with .Params.tags }}{{ range first 6 . }} - -{{- end }}{{ end -}} -{{- end -}} {{- end -}} {{- with .Params.audio }}{{ end }} @@ -573,9 +565,5 @@ if (!doNotTrack) { {{ with .Site.Social.twitter -}} {{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} - -{{ end -}} -{{ end -}}`}, +`}, } diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html index 5d4e78d7d01..b0395ae2f60 100644 --- a/tpl/tplimpl/embedded/templates/opengraph.html +++ b/tpl/tplimpl/embedded/templates/opengraph.html @@ -21,14 +21,6 @@ {{ with .PublishDate }}{{ end }} {{ with .Lastmod }}{{ end }} - -{{- range .Site.Authors }} -{{ with .Social.facebook }}{{ end }} -{{ with .Site.Social.facebook }}{{ end }} -{{- with .Params.tags }}{{ range first 6 . }} - -{{- end }}{{ end -}} -{{- end -}} {{- end -}} {{- with .Params.audio }}{{ end }} diff --git a/tpl/tplimpl/embedded/templates/twitter_cards.html b/tpl/tplimpl/embedded/templates/twitter_cards.html index cbe2430bc17..83a3b79c43c 100644 --- a/tpl/tplimpl/embedded/templates/twitter_cards.html +++ b/tpl/tplimpl/embedded/templates/twitter_cards.html @@ -22,8 +22,3 @@ {{ with .Site.Social.twitter -}} {{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} - -{{ end -}} -{{ end -}} \ No newline at end of file