mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-29 15:08:46 +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
6f5e42002e
commit
5ede34df2c
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