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
The following commit(s) were added to refs/heads/master by this push:
new c37aaa5 fix: search results
c37aaa5 is described below
commit c37aaa5add48e6367567e8a67c54784ce13ea584
Author: Aashna Jena <[email protected]>
AuthorDate: Wed Aug 5 03:32:21 2020 +0530
fix: search results
---
antora-ui-camel/src/js/vendor/algoliasearch.bundle.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
index 7a51860..0456b4b 100644
--- a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
+++ b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
@@ -53,10 +53,10 @@
const data = hits.reduce((data, hit) => {
const d = {}
d.url = hit.url
- var section = hit.hierarchy.lvl1
- if (hit.hierarchy.lvl0 !== null) section = section + ' [' +
hit.hierarchy.lvl0 + ']'
+ var section = hit.hierarchy.lvl0
+ if (hit.hierarchy.lvl6 !== null) section = section + ' [' +
hit.hierarchy.lvl6 + ']'
var breadcrumbs = Object.values(hit.hierarchy)
- .slice(2)
+ .slice(1)
.filter((lvl) => lvl !== null)
.join(' » ')