diff --git a/quartz.config.ts b/quartz.config.ts index 0c77c901c..e18f8ba2c 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -59,15 +59,16 @@ const config: QuartzConfig = { Plugin.ContentPage({ head: Component.Head(), header: [Component.PageTitle(), Component.Spacer(), Component.Darkmode()], - body: [ + beforeBody: [ Component.ArticleTitle(), Component.ReadingTime(), Component.TagList(), - Component.TableOfContents(), - Component.Content() ], - left: [], - right: [], + left: [ + Component.TableOfContents(), + ], + right: [ + ], footer: [] }), Plugin.ContentIndex(), // you can exclude this if you don't plan on using popovers, graph, or backlinks, diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx index a462e95af..65286a5a3 100644 --- a/quartz/components/TagList.tsx +++ b/quartz/components/TagList.tsx @@ -6,7 +6,7 @@ function TagList({ fileData }: QuartzComponentProps) { const tags = fileData.frontmatter?.tags const slug = fileData.slug! const baseDir = resolveToRoot(slug) - if (tags) { + if (tags && tags.length > 0) { return