Add fallback to Author url for #98
Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
@ -38,19 +38,15 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
"datePublished": {{ .PublishDate }},
|
"datePublished": {{ .PublishDate }},
|
||||||
"dateModified": {{ .Lastmod }},
|
"dateModified": {{ .Lastmod }},
|
||||||
{{- if .Params.author }}
|
|
||||||
"author":{
|
"author":{
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": {{ .Params.author }},
|
"name": {{ .Params.author | default .Site.Params.author.name }},
|
||||||
"url": {{ (ref . .Params.authorLink) | default (ref . .Site.Params.author.about) }}
|
{{- if .Params.authorLink }}
|
||||||
},
|
"url": {{ ref . .Params.authorLink }}
|
||||||
{{ else }}
|
{{ else if .Site.Params.author.about }}
|
||||||
"author":{
|
|
||||||
"@type": "Person",
|
|
||||||
"name": {{ site.Params.author.name }},
|
|
||||||
"url": {{ ref . .Site.Params.author.about }}
|
"url": {{ ref . .Site.Params.author.about }}
|
||||||
},
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
},
|
||||||
"mainEntityOfPage": {
|
"mainEntityOfPage": {
|
||||||
"@type": "WebPage",
|
"@type": "WebPage",
|
||||||
"@id": {{ .Permalink | safeHTML }}
|
"@id": {{ .Permalink | safeHTML }}
|
||||||
|
Reference in New Issue
Block a user