@@ -71,6 +71,7 @@ export function handleOptions(
71
71
pagination = { } as PaginationConfig ,
72
72
} = directory ;
73
73
74
+ const { title = UpperFirstChar ( id ) } = directory ;
74
75
/**
75
76
* 1.1 Required index path.
76
77
*/
@@ -86,7 +87,7 @@ export function handleOptions(
86
87
frontmatter : {
87
88
// Set layout for index page.
88
89
layout : ctx . getLayout ( indexLayout ) ,
89
- title : ` ${ UpperFirstChar ( id ) } ` ,
90
+ title,
90
91
...frontmatter ,
91
92
} ,
92
93
meta : {
@@ -125,8 +126,8 @@ export function handleOptions(
125
126
*/
126
127
paginations . push ( {
127
128
classifierType : ClassifierTypeEnum . Directory ,
128
- getPaginationPageTitle ( index , id ) {
129
- return `Page ${ index + 2 } | ${ id } ` ;
129
+ getPaginationPageTitle ( pageNumber ) {
130
+ return `Page ${ pageNumber } | ${ title } ` ;
130
131
} ,
131
132
...resolvePaginationConfig (
132
133
ClassifierTypeEnum . Directory ,
@@ -153,6 +154,7 @@ export function handleOptions(
153
154
frontmatter,
154
155
pagination = { } as PaginationConfig ,
155
156
} = frontmatterPage ;
157
+ const { title = UpperFirstChar ( id ) } = frontmatterPage ;
156
158
157
159
if ( ! indexPath ) {
158
160
continue ;
@@ -163,7 +165,7 @@ export function handleOptions(
163
165
frontmatter : {
164
166
// Set layout for index page.
165
167
layout : ctx . getLayout ( indexLayout , 'FrontmatterKey' ) ,
166
- title : ` ${ UpperFirstChar ( id ) } ` ,
168
+ title,
167
169
...frontmatter ,
168
170
} ,
169
171
meta : {
@@ -176,6 +178,7 @@ export function handleOptions(
176
178
177
179
frontmatterClassificationPages . push ( {
178
180
id,
181
+ entryTitle : title ,
179
182
pagination,
180
183
keys,
181
184
map,
0 commit comments