| | |
| | | import { defaultListPageLayout, sharedPageComponents } from "../../../quartz.layout" |
| | | import { FolderContent } from "../../components" |
| | | import { write } from "./helpers" |
| | | import { i18n } from "../../i18n" |
| | | |
| | | export const FolderPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => { |
| | | const opts: FullPageLayout = { |
| | |
| | | folder, |
| | | defaultProcessedContent({ |
| | | slug: joinSegments(folder, "index") as FullSlug, |
| | | frontmatter: { title: `Folder: ${folder}`, tags: [] }, |
| | | frontmatter: { |
| | | title: `${i18n(cfg.locale).pages.folderContent.folder}: ${folder}`, |
| | | tags: [], |
| | | }, |
| | | }), |
| | | ]), |
| | | ) |
| | |
| | | allFiles, |
| | | } |
| | | |
| | | const content = renderPage(slug, componentData, opts, externalResources) |
| | | const content = renderPage(cfg, slug, componentData, opts, externalResources) |
| | | const fp = await write({ |
| | | ctx, |
| | | content, |