This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 3e8d717038d2fa0f6d1dc37dd20cc4cdbb9a798a Author: Zoran Regvart <zregv...@apache.org> AuthorDate: Tue Nov 3 10:12:45 2020 +0100 fix: extra comma in the JSON-LD data We have an issue in the generated JSON-LD data, there is an extra comma being generated, and the URLs are not absolute (as the site.url no longer is). --- antora-ui-camel/src/partials/breadcrumbs-microdata.hbs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs index 613bd1a..2c5badb 100644 --- a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs +++ b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs @@ -6,30 +6,31 @@ "@type": "ListItem", "position": 1, "name": "{{{site.title}}}", - "item": "{{{site.url}}}" + "item": "https://camel.apache.org/" }, { "@type": "ListItem", "position": 2, "name": "{{{page.component.title}}}", - "item": "{{{add site.url page.component.url}}}" + "item": "https://camel.apache.org{{{page.component.url}}}" }, { "@type": "ListItem", "position": 3, "name": "{{{page.componentVersion.displayVersion}}}", - "item": "{{{add site.url page.componentVersion.url}}}" + "item": "https://camel.apache.org{{{page.componentVersion.url}}}" } {{#if page.breadcrumbs}} + , {{#each page.breadcrumbs}} - ,{ + { "@type": "ListItem", "position": {{add @index 4}}, "name": "{{{ ./content }}}", {{~#if (and ./url (eq ./urlType 'internal'))~}} - "item": "{{{add ../site.url ./url}}}" + "item": "https://camel.apache.org{{{./url}}}" {{~else~}} - "item": "{{{add ../site.url ../page.componentVersion.url}}}" + "item": "https://camel.apache.org{{{../page.componentVersion.url}}}" {{~/if~}} } {{#unless @last}}