diff --git a/quartz.config.ts b/quartz.config.ts index d1fe1841..5868449e 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -58,7 +58,7 @@ const config: QuartzConfig = { Plugin.ContentPage({ head: Component.Head(), header: [Component.PageTitle(), Component.Spacer(), Component.Darkmode()], - body: [Component.ArticleTitle(), Component.ReadingTime(), Component.TableOfContents(), Component.Content()] + body: [Component.ArticleTitle(), Component.ReadingTime(), Component.TagList(), Component.TableOfContents(), Component.Content()] }) ] }, diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index 16125da3..cc9dd77d 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -1,4 +1,5 @@ import { resolveToRoot } from "../path" +import { JSResourceToScriptElement } from "../resources" import { QuartzComponentConstructor, QuartzComponentProps } from "./types" function Head({ fileData, externalResources }: QuartzComponentProps) { @@ -25,7 +26,7 @@ function Head({ fileData, externalResources }: QuartzComponentProps) { {css.map(href => )} - {js.filter(resource => resource.loadTime === "beforeDOMReady").map(resource => + } +} + +export interface StaticResources { + css: string[], + js: JSResource[] +}