@@ -139,8 +139,8 @@ describe.skip('category pages', () => {
139139 const articleContents = await fs . promises . readFile ( articlePath , 'utf8' )
140140 const data = getFrontmatterData ( articleContents )
141141
142- // Do not include map topics in list of published articles
143- if ( data . mapTopic || data . hidden ) return null
142+ // Do not include subcategories in list of published articles
143+ if ( data . subcategory || data . hidden ) return null
144144
145145 // ".../content/github/{category}/{article}.md" => "/{article}"
146146 return `/${ path . relative ( categoryDir , articlePath ) . replace ( / \. m d $ / , '' ) } `
@@ -161,8 +161,8 @@ describe.skip('category pages', () => {
161161 const articleContents = await fs . promises . readFile ( articlePath , 'utf8' )
162162 const data = getFrontmatterData ( articleContents )
163163
164- // Do not include map topics nor hidden pages in list of available articles
165- if ( data . mapTopic || data . hidden ) return null
164+ // Do not include subcategories nor hidden pages in list of available articles
165+ if ( data . subcategory || data . hidden ) return null
166166
167167 // ".../content/github/{category}/{article}.md" => "/{article}"
168168 return `/${ path . relative ( categoryDir , articlePath ) . replace ( / \. m d $ / , '' ) } `
@@ -195,7 +195,7 @@ describe.skip('category pages', () => {
195195 expect ( unexpectedArticles . length , errorMessage ) . toBe ( 0 )
196196 } )
197197
198- test ( 'contains only articles and map topics with versions that are also available in the parent category' , ( ) => {
198+ test ( 'contains only articles and subcategories with versions that are also available in the parent category' , ( ) => {
199199 Object . entries ( articleVersions ) . forEach ( ( [ articleName , articleVersions ] ) => {
200200 const unexpectedVersions = difference ( articleVersions , categoryVersions )
201201 const errorMessage = `${ articleName } has versions that are not available in parent category`
0 commit comments