chore: passing additional buildCtx to componentData (#914)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
| | |
| | | import { QuartzPluginData } from "../plugins/vfile" |
| | | import { GlobalConfiguration } from "../cfg" |
| | | import { Node } from "hast" |
| | | import { BuildCtx } from "../util/ctx" |
| | | |
| | | export type QuartzComponentProps = { |
| | | ctx: BuildCtx |
| | | externalResources: StaticResources |
| | | fileData: QuartzPluginData |
| | | cfg: GlobalConfiguration |
| | |
| | | frontmatter: { title: notFound, tags: [] }, |
| | | }) |
| | | const componentData: QuartzComponentProps = { |
| | | ctx, |
| | | fileData: vfile.data, |
| | | externalResources, |
| | | cfg, |
| | |
| | | |
| | | const externalResources = pageResources(pathToRoot(slug), resources) |
| | | const componentData: QuartzComponentProps = { |
| | | ctx, |
| | | fileData: file.data, |
| | | externalResources, |
| | | cfg, |
| | |
| | | const externalResources = pageResources(pathToRoot(slug), resources) |
| | | const [tree, file] = folderDescriptions[folder] |
| | | const componentData: QuartzComponentProps = { |
| | | ctx, |
| | | fileData: file.data, |
| | | externalResources, |
| | | cfg, |
| | |
| | | const externalResources = pageResources(pathToRoot(slug), resources) |
| | | const [tree, file] = tagDescriptions[tag] |
| | | const componentData: QuartzComponentProps = { |
| | | ctx, |
| | | fileData: file.data, |
| | | externalResources, |
| | | cfg, |