Skip to content

Commit

Permalink
Always use document title for page title
Browse files Browse the repository at this point in the history
This title element is required by the schema.
  • Loading branch information
TylerZeroMaster committed May 31, 2024
1 parent d888247 commit d1ba328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/model/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class PageNode extends Fileish {
}
})))

const titleNode = select('//cnxml:title', doc) as Element[]
const titleNode = select('/cnxml:document/cnxml:title', doc) as Element[]
if (titleNode.length > 0) {
this._title.set(textWithRange(titleNode[0]))
} else {
Expand Down

0 comments on commit d1ba328

Please sign in to comment.