Tweak twitter card tags to cater for new params
This commit is contained in:
parent
22098b16d9
commit
b39a2e93b7
@ -28,10 +28,10 @@
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
{{ if (isset .Params "twitterSite") or (eq .Params.twitterSite "") }}
|
||||
<meta name="twitter:site" content="{{ $.Site.siteTwitter }}" />
|
||||
{{ if (isset $.Site.Params.Twitter "site") or (eq $.Site.Params.Twitter.site "") }}
|
||||
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
||||
{{ end }}
|
||||
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.twitterOwner }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
||||
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
||||
|
||||
<!-- OG data -->
|
||||
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user