use .Param for authorTwitter field
This commit is contained in:
parent
40f42481d9
commit
9d3137f694
@ -48,7 +48,7 @@
|
|||||||
{{ if (isset $.Site.Params.Twitter "site") }}
|
{{ if (isset $.Site.Params.Twitter "site") }}
|
||||||
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ $.Param "author" }}{{ end }}" />
|
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if $.Param "authortwitter" }}{{ $.Param "authorTwitter" }}{{ else }}{{ $.Param "author" }}{{ end }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- OG data -->
|
<!-- OG data -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user