Skip to content

Commit 5a2ad4f

Browse files
committed
fix: head.html: WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.
1 parent a2d72f4 commit 5a2ad4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<!-- Twitter Card -->
2929
<meta name="twitter:card" content="summary" />
30-
{{ if (isset $.Site.Params.Twitter "site") }}
30+
{{ with $.Site.Params.Twitter.site }}
3131
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
3232
{{ end }}
3333
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />

0 commit comments

Comments
 (0)