| | |
| | | |
| | | export type ContentIndexMap = Map<FullSlug, ContentDetails> |
| | | export type ContentDetails = { |
| | | slug: FullSlug |
| | | filePath: FilePath |
| | | title: string |
| | | links: SimpleSlug[] |
| | | tags: string[] |
| | |
| | | const date = getDate(ctx.cfg.configuration, file.data) ?? new Date() |
| | | if (opts?.includeEmptyFiles || (file.data.text && file.data.text !== "")) { |
| | | linkIndex.set(slug, { |
| | | slug, |
| | | filePath: file.data.filePath!, |
| | | title: file.data.frontmatter?.title!, |
| | | links: file.data.links ?? [], |
| | | tags: file.data.frontmatter?.tags ?? [], |
| | |
| | | } |
| | | } |
| | | }, |
| | | getQuartzComponents: () => [], |
| | | } |
| | | } |