1
Fork 0

Prefix twitter username with '@' in metadata

This commit is contained in:
Jake Howard 2021-03-13 20:48:00 +00:00
parent 365244bc2f
commit d095bc3a08
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -16,7 +16,7 @@
{{/* Twitter-specific tags */}} {{/* Twitter-specific tags */}}
<meta name="twitter:dnt" content="on" /> <meta name="twitter:dnt" content="on" />
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="{{ .Site.Data.social.accounts.twitter.username }}" /> <meta name="twitter:site" content="@{{ .Site.Data.social.accounts.twitter.username }}" />
<meta name="twitter:title" content="{{ .Title | htmlUnescape }}" /> <meta name="twitter:title" content="{{ .Title | htmlUnescape }}" />
<meta name="twitter:description" content="{{ .Summary | plainify | chomp | htmlUnescape }}{{ if .Truncated }}...{{ end }}" /> <meta name="twitter:description" content="{{ .Summary | plainify | chomp | htmlUnescape }}{{ if .Truncated }}...{{ end }}" />
<meta name="twitter:creator" content="{{ .Site.Data.social.accounts.twitter.username }}" /> <meta name="twitter:creator" content="{{ .Site.Data.social.accounts.twitter.username }}" />