From 9ffdabb51f564ae3bb1deb1ca7f1b31518ad5a06 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 9 Aug 2019 09:58:39 -0400 Subject: [PATCH] Fix `site.url` in Organization/Person JSON-LD schema Close #1906 --- CHANGELOG.md | 1 + _includes/seo.html | 33 +++++++++++++-------------------- test/_config.yml | 2 ++ 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4009ba35..6fc1974f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Bug Fixes +- Fix `site.url` in Organization/Person JSON-LD schema. [#1906](https://github.com/mmistakes/minimal-mistakes/issues/1906) - Remove full stop in some `comment_form_info` UI text strings. [#2220](https://github.com/mmistakes/minimal-mistakes/pull/2220) - Fix default `site.author` in seo.html [#2230](https://github.com/mmistakes/minimal-mistakes/pull/2230) - Fix overlapping links (linked to and post's permalink) in post link type. [#2222](https://github.com/mmistakes/minimal-mistakes/issues/2222) diff --git a/_includes/seo.html b/_includes/seo.html index 25a7e422..ead2d1f8 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -127,28 +127,21 @@ {% endif %} -{% if site.og_image %} - -{% endif %} - -{% if site.social %} - -{% endif %} + "url": {{ '/' | absolute_url |jsonify }}{% if site.social.links %}, + "sameAs": {{ site.social.links | jsonify }}{% endif %} + {% endif %} + } + {% if site.google_site_verification %} diff --git a/test/_config.yml b/test/_config.yml index e0ef5473..e9b547f4 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -84,6 +84,8 @@ social: type : # Person or Organization (defaults to Person) name : # If the user or organization name differs from the site's name links: # An array of links to social media profiles + - https://twitter.com/ + - https://github.com/ # Analytics analytics: