differentiate between title and shortTitle in siteTree
This commit is contained in:
@@ -78,7 +78,8 @@ function buildCategoriesTree (tocItems, versionedProductHref, pageMap, redirects
|
||||
if (!page) return
|
||||
if (!getApplicableVersions(page.versions).includes(version)) return
|
||||
|
||||
category.title = page.shortTitle || page.title
|
||||
category.title = page.title
|
||||
category.shortTitle = page.shortTitle
|
||||
|
||||
// support standalone pages at the category level, like actions/quickstart.md
|
||||
if (!page.tocItems) {
|
||||
@@ -157,7 +158,8 @@ function buildArticlesTree (tocItems, versionedCategoryHref, pageMap, redirects,
|
||||
if (!page) return
|
||||
if (!getApplicableVersions(page.versions).includes(version)) return
|
||||
|
||||
article.title = page.shortTitle || page.title
|
||||
article.title = page.title
|
||||
article.shortTitle = page.shortTitle
|
||||
article.hidden = page.hidden
|
||||
|
||||
articleTree[article.href] = article
|
||||
|
||||
Reference in New Issue
Block a user