@@ -20,15 +20,15 @@ module.exports = (options, ctx) => {
20
20
frontmatter : { layout : getLayout ( 'Categories' , 'Page' ) }
21
21
} ,
22
22
{
23
- when : ( { regularPath } ) => regularPath . startsWith ( '/category/' ) ,
23
+ when : ( { regularPath } ) => regularPath . startsWith ( categoryIndexPageUrl ) ,
24
24
frontmatter : { layout : getLayout ( 'Category' , 'Page' ) }
25
25
} ,
26
26
{
27
27
when : ( { regularPath } ) => regularPath === tagIndexPageUrl ,
28
28
frontmatter : { layout : getLayout ( 'Tags' , 'Page' ) }
29
29
} ,
30
30
{
31
- when : ( { regularPath } ) => regularPath . startsWith ( '/tag/' ) ,
31
+ when : ( { regularPath } ) => regularPath . startsWith ( tagIndexPageUrl ) ,
32
32
frontmatter : { layout : getLayout ( 'Tag' , 'Page' ) }
33
33
} ,
34
34
{
@@ -86,15 +86,14 @@ module.exports = (options, ctx) => {
86
86
if ( key ) {
87
87
if ( ! map [ key ] ) {
88
88
map [ key ] = { }
89
- map [ key ] . path = `/ ${ scope } / ${ key } .html`
89
+ map [ key ] . path = `${ scope } ${ key } .html`
90
90
map [ key ] . pageKeys = [ ]
91
91
}
92
92
map [ key ] . pageKeys . push ( pageKey )
93
93
}
94
94
}
95
-
96
- const handleTag = curryHandler ( 'tag' , tagMap )
97
- const handleCategory = curryHandler ( 'category' , categoryMap )
95
+ const handleTag = curryHandler ( tagIndexPageUrl , tagMap )
96
+ const handleCategory = curryHandler ( categoryIndexPageUrl , categoryMap )
98
97
99
98
pages . forEach ( ( {
100
99
key,
0 commit comments