refactor(opengraph/twitter): add @ before username (#186)

https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html
This commit is contained in:
zhixuan 2021-04-07 17:31:25 +09:00 committed by GitHub
parent 80bd7689a2
commit 7dab67b358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{{- with .Site.Params.opengraph.twitter.site -}}
<meta name="twitter:site" content="{{ . }}">
<meta name="twitter:site" content="@{{ . }}">
<meta name="twitter:creator" content="@{{ . }}">
{{- end -}}
{{- $title := partialCached "data/title" . .RelPermalink -}}