Fix bug in author params code, reported in issue #117.

This commit is contained in:
Fredrik Jonsson 2024-11-06 15:27:51 +01:00
commit a1e9b05dcc

View file

@ -33,7 +33,7 @@
{{ with $.Param "image" -}}
"image" : {{ . | absURL }},
{{ end -}}
{{ with $.Param "author" -}}
{{ with .Params.author | default site.Params.author.name -}}
"author": {
"@type": "Person",
"name": {{ . }}