Update twitter:creator with cleaner/multiple fallbacks
This commit is contained in:
parent
5ede34df2c
commit
9d64a69092
@ -31,7 +31,7 @@
|
|||||||
{{ if (isset $.Site.Params.Twitter "site") }}
|
{{ if (isset $.Site.Params.Twitter "site") }}
|
||||||
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
||||||
|
|
||||||
<!-- OG data -->
|
<!-- OG data -->
|
||||||
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
|
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user