@@ -45,7 +45,8 @@ export type ProductLandingContextT = {
4545 productUserExamples : Array < { username : string ; description : string } >
4646 productCommunityExamples : Array < { repo : string ; description : string } >
4747 featuredArticles : Array < {
48- label : string // Guides
48+ key : string // Featured article section key (startHere, popular, etc.)
49+ label : string // Start here, Popular, etc.
4950 viewAllHref ?: string // If provided, adds a "View All ->" to the header
5051 viewAllTitleText ?: string // Adds 'title' attribute text for the "View All" href
5152 articles : Array < FeaturedLink >
@@ -133,16 +134,17 @@ export const getProductLandingContextFromRequest = async (
133134
134135 featuredArticles : Object . entries ( req . context . featuredLinks || [ ] )
135136 . filter ( ( [ key ] ) => {
136- return key === 'guides ' || key === 'popular' || key === 'videos'
137+ return key === 'startHere ' || key === 'popular' || key === 'videos'
137138 } )
138139 . map ( ( [ key , links ] : any ) => {
139140 return {
141+ key,
140142 label :
141143 key === 'popular' || key === 'videos'
142144 ? req . context . page . featuredLinks [ key + 'Heading' ] || req . context . site . data . ui . toc [ key ]
143145 : req . context . site . data . ui . toc [ key ] ,
144146 viewAllHref :
145- key === 'guides ' && ! req . context . currentCategory && hasGuidesPage
147+ key === 'startHere ' && ! req . context . currentCategory && hasGuidesPage
146148 ? `${ req . context . currentPath } /guides`
147149 : '' ,
148150 articles : links . map ( ( link : any ) => {
0 commit comments