chore: Move .Site.Author to .Site.Params.Author

This commit is contained in:
unacro
2024-08-11 20:45:05 +08:00
parent 41615910a7
commit d6873cf1b1
15 changed files with 40 additions and 35 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"publisher" : {
"@type": "Person",
"name": "{{ .Site.Author.name | safeJS }}"
"name": "{{ .Site.Params.Author.name | safeJS }}"
}
}
</script>
@@ -30,7 +30,7 @@
"url" : "{{ .Permalink }}",
"author" : {
"@type": "Person",
"name": "{{ .Site.Author.name | safeJS }}"
"name": "{{ .Site.Params.Author.name | safeJS }}"
},
{{ with .PublishDate }}"copyrightYear": "{{ .Format "2006" }}",{{ end }}
{{ with .Date }}"dateCreated": "{{ .Format $iso8601 }}",{{ end }}