feat: Make any property of frontmatter a display name (#329)

This commit is contained in:
Simon Cambier
2024-06-29 17:02:11 +02:00
parent 94d687aeaa
commit 38c964bec2
6 changed files with 26 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ export type DocumentRef = { path: string; mtime: number }
export type IndexedDocument = {
path: string
basename: string
displayTitle: string
mtime: number
content: string
@@ -76,6 +77,7 @@ export type ResultNote = {
score: number
path: string
basename: string
displayTitle: string
content: string
foundWords: string[]
matches: SearchMatch[]