fix: allow partial when specifiying layout for emitter plugins
| | |
| | | import { FolderContent } from "../../components" |
| | | import { write } from "./helpers" |
| | | |
| | | export const FolderPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => { |
| | | export const FolderPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => { |
| | | const opts: FullPageLayout = { |
| | | ...sharedPageComponents, |
| | | ...defaultListPageLayout, |
| | |
| | | import { TagContent } from "../../components" |
| | | import { write } from "./helpers" |
| | | |
| | | export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => { |
| | | export const TagPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => { |
| | | const opts: FullPageLayout = { |
| | | ...sharedPageComponents, |
| | | ...defaultListPageLayout, |
| | |
| | | import { StaticResources } from "../util/resources" |
| | | import { ProcessedContent } from "./vfile" |
| | | import { QuartzComponent } from "../components/types" |
| | | import { FilePath, FullSlug } from "../util/path" |
| | | import { FilePath } from "../util/path" |
| | | import { BuildCtx } from "../util/ctx" |
| | | |
| | | export interface PluginTypes { |