diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx index bb7ba199a..5e992b48b 100644 --- a/quartz/components/RecentNotes.tsx +++ b/quartz/components/RecentNotes.tsx @@ -24,11 +24,11 @@ const defaultOptions: Options = { export default ((userOpts?: Partial) => { const opts = { ...defaultOptions, ...userOpts } function RecentNotes(props: QuartzComponentProps) { - const { allFiles, fileData } = props + const { allFiles, fileData, displayClass } = props const pages = allFiles.filter(opts.filter).sort(opts.sort).slice(0, opts.limit) const remaining = Math.max(0, pages.length - opts.limit) return ( -
+

{opts.title}

    {pages.map((page) => { diff --git a/quartz/components/TableOfContents.tsx b/quartz/components/TableOfContents.tsx index 67f29d58a..460456591 100644 --- a/quartz/components/TableOfContents.tsx +++ b/quartz/components/TableOfContents.tsx @@ -13,13 +13,13 @@ const defaultOptions: Options = { layout: "modern", } -function TableOfContents({ fileData }: QuartzComponentProps) { +function TableOfContents({ fileData, displayClass }: QuartzComponentProps) { if (!fileData.toc) { return null } return ( -
    +