From c2bea8a4c4aeba440b8a7b043d7ece6343a9d263 Mon Sep 17 00:00:00 2001
From: derfalx <kschneider@falx.tech>
Date: Thu, 08 Jan 2026 01:30:42 +0000
Subject: [PATCH] fix(citation): Language parameter for non en-US settings (#2075)
---
quartz/components/Body.tsx | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/quartz/components/Body.tsx b/quartz/components/Body.tsx
index 1d9296b..96b6278 100644
--- a/quartz/components/Body.tsx
+++ b/quartz/components/Body.tsx
@@ -1,18 +1,13 @@
-import { ComponentChildren } from "preact"
-import clipboardScript from './scripts/clipboard.inline'
-import clipboardStyle from './styles/clipboard.scss'
+// @ts-ignore
+import clipboardScript from "./scripts/clipboard.inline"
+import clipboardStyle from "./styles/clipboard.scss"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
-export interface BodyProps {
- title?: string
- children: ComponentChildren
-}
-
-export default function Body({ title, children }: BodyProps) {
- return <article>
- {title && <h1>{title}</h1>}
- {children}
- </article>
+const Body: QuartzComponent = ({ children }: QuartzComponentProps) => {
+ return <div id="quartz-body">{children}</div>
}
Body.afterDOMLoaded = clipboardScript
Body.css = clipboardStyle
+
+export default (() => Body) satisfies QuartzComponentConstructor
--
Gitblit v1.10.0