mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-05 11:37:31 -05:00
Add support for twitter:creator tag
Put `twitter` metadata on an author
This commit is contained in:
@ -25,6 +25,17 @@
|
|||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{/* twitter:site is the site author; twitter:creator is page author
|
||||||
|
* https://developer.x.com/en/docs/x-for-websites/cards/guides/getting-started
|
||||||
|
* "Card and Content Attribution"
|
||||||
|
*/}}
|
||||||
{{ with .Site.Params.social.twitter }}
|
{{ with .Site.Params.social.twitter }}
|
||||||
<meta name="twitter:site" content="@{{ . }}">
|
<meta name="twitter:site" content="@{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with .GetTerms "authors" }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ with .Params.twitter }}
|
||||||
|
<meta name="twitter:creator" content="@{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user