From 3ddabc737078881f2d8061abcee97e21c7d642cc Mon Sep 17 00:00:00 2001 From: imtodor Date: Wed, 10 Jun 2020 15:15:26 +0300 Subject: [PATCH 1/3] feat: JSON LD metadata added --- _layouts/default.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/_layouts/default.html b/_layouts/default.html index ac08f65..dc351bc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,6 +9,40 @@ {% if page.title_prefix %}{{ page.title_prefix }} | {% endif %}{{ page.page_title | default: page.title }}{% if site.use_product_in_title != false %} | {{ site.product }} {% endif %} {% if page.res_type %}{% else %}{% endif %} + {% if site.progress_hosting != true %} + + {% endif %} {% if page.needs_canonical %} From 4f9c40bb87fbf70c42babd25a98491788cd27dac Mon Sep 17 00:00:00 2001 From: imtodor Date: Wed, 10 Jun 2020 16:02:40 +0300 Subject: [PATCH 2/3] fix: Correct isPartOf value set to JSON LD metadata --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index dc351bc..a146d4a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -39,7 +39,7 @@ }, "description": "{{ page.description | parse_front_matter }}", "about": "{{ site.product }}", - "isPartOf": "https://docs.telerik.com{{site.baseurl}}" + "isPartOf": "{% if site.product_url %}{{ site.product_url }}{% else %}https://www.telerik.com{% endif %}" } {% endif %} From fb1070c3679523b84265282765cd1c3955f41c33 Mon Sep 17 00:00:00 2001 From: imtodor Date: Wed, 10 Jun 2020 16:22:16 +0300 Subject: [PATCH 3/3] chore: Fallback URL for JSON LD isPartOf value changed to the docs intro --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index a146d4a..f038a44 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -39,7 +39,7 @@ }, "description": "{{ page.description | parse_front_matter }}", "about": "{{ site.product }}", - "isPartOf": "{% if site.product_url %}{{ site.product_url }}{% else %}https://www.telerik.com{% endif %}" + "isPartOf": "{% if site.product_url %}{{ site.product_url }}{% else %}https://docs.telerik.com{{site.baseurl}}{% endif %}" } {% endif %}