We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16df156 commit 8562a4fCopy full SHA for 8562a4f
packages/@vuepress/shared-utils/src/inferTitle.ts
@@ -9,11 +9,10 @@ import deeplyParseHeaders from './deeplyParseHeaders'
9
*/
10
11
export = function (frontmatter: Record<string, any>, strippedContent: string): string | void {
12
- if (frontmatter.home) {
13
- return 'Home'
14
- }
15
if (frontmatter.title) {
16
return deeplyParseHeaders(frontmatter.title)
+ } else if (frontmatter.home) {
+ return 'Home'
17
}
18
const match = strippedContent.trim().match(/^#+\s+(.*)/)
19
if (match) {
0 commit comments