From 24e5d82ecb4f28bb7b22a3a8d28633b6a1519c48 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 1 May 2021 11:32:45 +0530 Subject: [PATCH] Update hugo internal templates Remove .Site.Authors from embedded templates https://github.com/gohugoio/hugo/commit/f6745ad3588a7b3aaae228fec18fe0027affd566 --- layouts/partials/templates/opengraph.html | 8 -------- layouts/partials/templates/twitter_cards.html | 5 ----- 2 files changed, 13 deletions(-) diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 9c2b8a5..9bbd90b 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -29,14 +29,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/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html index de86c78..02270de 100644 --- a/layouts/partials/templates/twitter_cards.html +++ b/layouts/partials/templates/twitter_cards.html @@ -31,8 +31,3 @@ {{ with .Site.Social.twitter -}} {{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} - -{{ end -}} -{{ end -}} \ No newline at end of file