Only use isset check for twitter:site param

See https://gohugo.io/functions/isset/ - consistent with all other param checks in file
This commit is contained in:
willstocks 2020-03-18 11:24:24 +00:00 committed by panr
parent 8b51d587d8
commit 3d067dea1b

View file

@ -28,7 +28,7 @@
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
{{ if (isset $.Site.Params.Twitter "site") or (eq $.Site.Params.Twitter.site "") }}
{{ 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 }}" />