Add url to schema, fix json
This commit is contained in:
parent
7b4b38072d
commit
4abc133ca9
@ -6,11 +6,12 @@
|
||||
"name": "{{ .Site.Title }}",
|
||||
"url": "{{ .Site.BaseURL }}",
|
||||
"description": "{{ .Site.Params.description }}",
|
||||
"thumbnailUrl": "{{ .Site.BaseURL }}favicon/favicon-32x32.png",
|
||||
"thumbnailUrl": "{{ .Site.BaseURL }}favicon/favicon-32x32.png"
|
||||
}
|
||||
</script>
|
||||
{{ else if .IsPage }}
|
||||
{{ $author := or (.Params.author) (.Site.Params.Author.name) }}
|
||||
{{ $authorUrl := or (.Params.authorUrl) (.Site.Params.Author.url) }}
|
||||
{{ $org_name := .Site.Title }}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
@ -27,7 +28,8 @@
|
||||
},
|
||||
"author" : {
|
||||
"@type": "Person",
|
||||
"name": "{{ $author }}"
|
||||
"name": "{{ $author }}",
|
||||
"url": "{{ $authorUrl }}"
|
||||
},
|
||||
"creator" : {
|
||||
"@type": "Person",
|
||||
|
Loading…
Reference in New Issue
Block a user