diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-05-01 11:32:45 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-05-01 11:32:45 +0530 |
| commit | 24e5d82ecb4f28bb7b22a3a8d28633b6a1519c48 (patch) | |
| tree | c8db68bdbd865452893472f7dc2d405aeafed4ca /layouts | |
| parent | 20b91ad2aa0c22c1be7850d21553664209a4b19f (diff) | |
Update hugo internal templates
Remove .Site.Authors from embedded templates
https://github.com/gohugoio/hugo/commit/f6745ad3588a7b3aaae228fec18fe0027affd566
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/templates/opengraph.html | 8 | ||||
| -rw-r--r-- | layouts/partials/templates/twitter_cards.html | 5 |
2 files changed, 0 insertions, 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 @@ <meta property="article:section" content="{{ .Section }}" /> {{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }} {{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format $iso8601 }}" />{{ end }} - -{{- range .Site.Authors }} -{{ with .Social.facebook }}<meta property="article:author" content="https://www.facebook.com/{{ . }}" />{{ end }} -{{ with .Site.Social.facebook }}<meta property="article:publisher" content="https://www.facebook.com/{{ . }}" />{{ end }} -{{- with .Params.tags }}{{ range first 6 . }} -<meta property="article:tag" content="{{ . }}" /> -{{- end }}{{ end -}} -{{- end -}} {{- end -}} {{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ 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 -}} <meta name="twitter:site" content="@{{ . }}"/> {{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} -<meta name="twitter:creator" content="@{{ . }}"/> -{{ end -}} -{{ end -}}
\ No newline at end of file |
