diff --git a/README.md b/README.md index 2df1622..be332bf 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ params: favicon: "" # Relative path to favicon in json feed, no leading slash. feedlinks: true # Show feed links in the footer. footer: "A [example.org](https://example.org/) production." - icon: "" # Relative path to icon in json feed, no leading slash. + icon: "" # Relative path to icon in json feed and JSON-LD, no leading slash. image: "" # Relative path to site image in JSON-LD, no leading slash. imageMaxWidth: "" # Max width for images added via figure shortcode. jquery: true # Add jQuery diff --git a/layouts/partials/section_json_ld.html b/layouts/partials/section_json_ld.html index 559da9e..26e5e33 100644 --- a/layouts/partials/section_json_ld.html +++ b/layouts/partials/section_json_ld.html @@ -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 -}} } } diff --git a/layouts/partials/single_json_ld.html b/layouts/partials/single_json_ld.html index 7951629..7e093a8 100644 --- a/layouts/partials/single_json_ld.html +++ b/layouts/partials/single_json_ld.html @@ -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 -}} } }