--- import { SIDEBAR } from '../../config.ts'; import { getLanguageFromURL, removeLeadingSlash, removeTrailingSlash } from '../../util.ts'; const {currentPage} = Astro.props; // Get the slug w/o a leading or trailing slash const currentPageMatch = removeLeadingSlash(removeTrailingSlash(currentPage)); const langCode = getLanguageFromURL(currentPage); // SIDEBAR is a flat array. Group it by sections to properly render. const sidebarSections = SIDEBAR[langCode].reduce((col, item) => { if (item.header) { col.push({...item, children: []}); } else { col[col.length-1].children.push(item); } return col; }, []); --- arkdown-flag Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/ssr-error-pages (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-03-28[ci] formatGravatar TK 1-2/+2
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 5-3/+69
2024-03-28[ci] formatGravatar Houston (Bot) 2-3/+3
2024-03-28[ci] release (#10597)Gravatar Houston (Bot) 37-66/+89
2024-03-28db: Rework index config with generated index names (#10589)Gravatar Ben Holmes 6-68/+344