Add logo to publisher JSON-LD.

This commit is contained in:
Fredrik Jonsson 2019-06-04 20:53:48 +02:00
commit 23f53a6ba7
2 changed files with 15 additions and 3 deletions

View file

@ -23,7 +23,13 @@
"publisher": {
"@type": "Organization",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }}
"url": {{ .Site.BaseURL }},
{{ with $.Param "icon" -}}
"logo" : {
"@type": "ImageObject",
"url": {{ . | absURL }}
}
{{ end -}}
}
}
</script>

View file

@ -26,7 +26,13 @@
"publisher": {
"@type": "Organization",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }}
"url": {{ .Site.BaseURL }},
{{ with $.Param "icon" -}}
"logo" : {
"@type": "ImageObject",
"url": {{ . | absURL }}
}
{{ end -}}
}
}
</script>