Skip to content

Commit

Permalink
Remove .Site.Authors from embedded templates
Browse files Browse the repository at this point in the history
Closes #4458
  • Loading branch information
jmooring authored and bep committed Apr 29, 2021
1 parent f523e9f commit f6745ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
14 changes: 1 addition & 13 deletions tpl/tplimpl/embedded/templates.autogen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions tpl/tplimpl/embedded/templates/opengraph.html
Expand Up @@ -21,14 +21,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 }}
Expand Down
5 changes: 0 additions & 5 deletions tpl/tplimpl/embedded/templates/twitter_cards.html
Expand Up @@ -22,8 +22,3 @@
{{ with .Site.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}"/>
{{ end -}}
{{ range .Site.Authors }}
{{ with .twitter -}}
<meta name="twitter:creator" content="@{{ . }}"/>
{{ end -}}
{{ end -}}

0 comments on commit f6745ad

Please sign in to comment.