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 6190fda12d47468a4283b77c9489f5e1ec8d1f9a Author: nayananga@acerubuntu18.04 <nayanangamuhandi...@gmail.com> AuthorDate: Sat Aug 10 00:10:53 2019 +0530 new: breadcrumbs in antora ui camel --- .../src/partials/breadcrumbs-microdata.hbs | 42 ++++++++++++++++++++++ antora-ui-camel/src/partials/footer-scripts.hbs | 3 ++ 2 files changed, 45 insertions(+) diff --git a/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs new file mode 100644 index 0000000..de9d1e1 --- /dev/null +++ b/antora-ui-camel/src/partials/breadcrumbs-microdata.hbs @@ -0,0 +1,42 @@ +{{#if page.breadcrumbs}}{ + "@context": "http://schema.org", + "@type": "BreadcrumbList", + "itemListElement": [ + + {{#each page.breadcrumbs}} + {{!-- {{#if (and ./title (not (or ./root (eq @root.page.breadcrumbs.0.content ./title))))}}{ + "@type": "ListItem", + "position": {{ @index }}, + "item": "{{{ concat url ./url }}}", + "name": "{{{ ./title }}}" } + {{/if}} --}} + {{#if (and ./url (eq ./urlType 'internal'))~}}{ + "@type": "ListItem", + "position": {{ @index }}, + "item": "{{{ concat url ./url }}}", + "name": "{{{ ./content }}}" } + {{/if}} + {{/each}} + ] } +{{/if}} + + +{{!-- {{#gt (length breadcrumbs) 1}} + +<script type="application/ld+json" id="wsa-schema-breadcrumbs"> { + "@context": "http://schema.org", + "@type": "BreadcrumbList", + "@id": "#BreadcrumbList", + "itemListElement": [ + {{#each breadcrumbs}} + {{#unless @last}} + {{#unless @FIRST}}, + {{/unless}} + { "@type": "ListItem", + "position": {{add @index 1}}, + "item": { "@id": "{{{concat url '#Breadcrumb'}}}", + "name": {{{json name}}} } } + {{/unless}} + {{/each}} ] } +</script> +{{/gt}} --}} \ No newline at end of file diff --git a/antora-ui-camel/src/partials/footer-scripts.hbs b/antora-ui-camel/src/partials/footer-scripts.hbs index 3adce5f..e38b216 100644 --- a/antora-ui-camel/src/partials/footer-scripts.hbs +++ b/antora-ui-camel/src/partials/footer-scripts.hbs @@ -14,3 +14,6 @@ "description": "Apache Camel ™ is a versatile open-source integration framework based on known Enterprise Integration Patterns. Camel empowers you to define routing and mediation rules in a variety of domain-specific languages, including a Java-based Fluent API, Spring or Blueprint XML Configuration files, and a Scala DSL." } </script> +<script type="application/ld+json"> +{{> breadcrumbs-microdata}} +</script> \ No newline at end of file