1
0
mirror of synced 2025-12-21 19:06:49 -05:00

differentiate between title and shortTitle in siteTree

This commit is contained in:
Sarah Schneider
2021-04-14 10:35:10 -04:00
parent 15ff2e2e98
commit 3a2839cb17
3 changed files with 34 additions and 17 deletions

View File

@@ -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