Skip to content

Commit 48aad24

Browse files
committed
Configure breadcrumb
1 parent ba90ec6 commit 48aad24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/knowledge-base.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function createKnowledgeBaseCategoryPage (category, pages) {
3636
'page-layout': 'kb-category',
3737
'page-category': category,
3838
'page-category-pages': pages,
39-
'page-theme': 'kb'
39+
'page-theme': 'kb',
40+
'page-breadcrumb': category
4041
}
4142
},
4243
src: {
@@ -61,7 +62,6 @@ function addKnowledgeBaseTagPages (pages, contentCatalog) {
6162
page.asciidoc.attributes.tags
6263
})
6364
.reduce((acc, page) => {
64-
// category must be a single value
6565
const tagsAttribute = page.asciidoc.attributes.tags
6666
const tags = tagsAttribute.trim().split(',').map((value) => value.trim().toLowerCase())
6767
for (const tag of tags) {
@@ -90,7 +90,8 @@ function createKnowledgeBaseTagPage (tag, pages) {
9090
'page-layout': 'kb-tag',
9191
'page-tag': tag,
9292
'page-tag-pages': pages,
93-
'page-theme': 'kb'
93+
'page-theme': 'kb',
94+
'page-breadcrumb': tag
9495
}
9596
},
9697
src: {

0 commit comments

Comments
 (0)