@@ -71,6 +71,7 @@ export function handleOptions(
7171 pagination = { } as PaginationConfig ,
7272 } = directory ;
7373
74+ const { title = UpperFirstChar ( id ) } = directory ;
7475 /**
7576 * 1.1 Required index path.
7677 */
@@ -86,7 +87,7 @@ export function handleOptions(
8687 frontmatter : {
8788 // Set layout for index page.
8889 layout : ctx . getLayout ( indexLayout ) ,
89- title : ` ${ UpperFirstChar ( id ) } ` ,
90+ title,
9091 ...frontmatter ,
9192 } ,
9293 meta : {
@@ -125,8 +126,8 @@ export function handleOptions(
125126 */
126127 paginations . push ( {
127128 classifierType : ClassifierTypeEnum . Directory ,
128- getPaginationPageTitle ( index , id ) {
129- return `Page ${ index + 2 } | ${ id } ` ;
129+ getPaginationPageTitle ( pageNumber ) {
130+ return `Page ${ pageNumber } | ${ title } ` ;
130131 } ,
131132 ...resolvePaginationConfig (
132133 ClassifierTypeEnum . Directory ,
@@ -153,6 +154,7 @@ export function handleOptions(
153154 frontmatter,
154155 pagination = { } as PaginationConfig ,
155156 } = frontmatterPage ;
157+ const { title = UpperFirstChar ( id ) } = frontmatterPage ;
156158
157159 if ( ! indexPath ) {
158160 continue ;
@@ -163,7 +165,7 @@ export function handleOptions(
163165 frontmatter : {
164166 // Set layout for index page.
165167 layout : ctx . getLayout ( indexLayout , 'FrontmatterKey' ) ,
166- title : ` ${ UpperFirstChar ( id ) } ` ,
168+ title,
167169 ...frontmatter ,
168170 } ,
169171 meta : {
@@ -176,6 +178,7 @@ export function handleOptions(
176178
177179 frontmatterClassificationPages . push ( {
178180 id,
181+ entryTitle : title ,
179182 pagination,
180183 keys,
181184 map,
0 commit comments