mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
Update hugo internal templates
Remove .Site.Authors from embedded templates
f6745ad358
This commit is contained in:
parent
20b91ad2aa
commit
24e5d82ecb
@ -29,14 +29,6 @@
|
|||||||
<meta property="article:section" content="{{ .Section }}" />
|
<meta property="article:section" content="{{ .Section }}" />
|
||||||
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
||||||
{{ with .Lastmod }}<meta property="article:modified_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 -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
||||||
|
@ -31,8 +31,3 @@
|
|||||||
{{ with .Site.Social.twitter -}}
|
{{ with .Site.Social.twitter -}}
|
||||||
<meta name="twitter:site" content="@{{ . }}"/>
|
<meta name="twitter:site" content="@{{ . }}"/>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ range .Site.Authors }}
|
|
||||||
{{ with .twitter -}}
|
|
||||||
<meta name="twitter:creator" content="@{{ . }}"/>
|
|
||||||
{{ end -}}
|
|
||||||
{{ end -}}
|
|
Loading…
Reference in New Issue
Block a user