From 04ff763688b72cd2bb61234ec7eb0030f5ac2445 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 21 Feb 2017 16:14:13 +0200 Subject: [PATCH] Revert to using Hugo's own OpenGraph template I had overridden Hugo's OpenGraph template to improve it, but those changes have been upstreamed in Hugo 0.19. We can use theirs now. See: https://github.com/spf13/hugo/pull/3073 --- layouts/partials/head-meta.html | 2 +- layouts/partials/opengraph.html | 64 --------------------------------- 2 files changed, 1 insertion(+), 65 deletions(-) delete mode 100644 layouts/partials/opengraph.html diff --git a/layouts/partials/head-meta.html b/layouts/partials/head-meta.html index 7c81769..61a23c1 100644 --- a/layouts/partials/head-meta.html +++ b/layouts/partials/head-meta.html @@ -1,7 +1,7 @@ -{{ partial "opengraph.html" . }} +{{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{- with .Site.Params.google_verify_meta -}} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html deleted file mode 100644 index d12ff7d..0000000 --- a/layouts/partials/opengraph.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - -{{ with .Params.images }}{{ range first 6 . }} - -{{ end }}{{ end }} - -{{ if .IsPage }} -{{ if not .PublishDate.IsZero }} -{{ else if not .Date.IsZero }}{{ end }} -{{ if not .Lastmod.IsZero }}{{ end }} -{{ else }} -{{ if not .Date.IsZero }}{{ end }} -{{ end }}{{ with .Params.audio }} -{{ end }}{{ with .Params.locale }} -{{ end }}{{ with .Site.Params.title }} -{{ end }}{{ with .Params.videos }} -{{ range .Params.videos }} - -{{ end }}{{ end }} - - -{{ $permalink := .Permalink }} -{{ $siteSeries := .Site.Taxonomies.series }}{{ with .Params.series }} -{{ range $name := . }} - {{ $series := index $siteSeries $name }} - {{ range $page := first 6 $series.Pages }} - {{ if ne $page.Permalink $permalink }}{{ end }} - {{ end }} -{{ end }}{{ end }} - -{{ if .IsPage }} -{{ range .Site.Authors }}{{ with .Social.facebook }} -{{ end }}{{ with .Site.Social.facebook }} -{{ end }} - -{{ with .Params.tags }}{{ range first 6 . }} - {{ end }}{{ end }} -{{ end }}{{ end }} - - -{{ with .Site.Social.facebook_admin }}{{ end }}