mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-01 16:12:39 +03:00
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:
parent
8b51d587d8
commit
3d067dea1b
1 changed files with 1 additions and 1 deletions
|
@ -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 }}" />
|
||||
|
|
Loading…
Reference in a new issue