mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2025-03-15 02:39:06 +03:00
Update twitter:creator with cleaner/multiple fallbacks
This commit is contained in:
parent
5ede34df2c
commit
9d64a69092
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
{{ if (isset $.Site.Params.Twitter "site") }}
|
||||
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
||||
{{ 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 -->
|
||||
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
|
||||
|
|
Loading…
Add table
Reference in a new issue