From 352075ae81a3304a7bfa2512ef69b1cdacb26c12 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 12 Jun 2023 06:26:43 +0000
Subject: [PATCH] refactor plugins to be functions instead of classes

---
 quartz/components/Body.tsx |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/quartz/components/Body.tsx b/quartz/components/Body.tsx
index 92e6682..b8ad34b 100644
--- a/quartz/components/Body.tsx
+++ b/quartz/components/Body.tsx
@@ -2,13 +2,8 @@
 import clipboardStyle from './styles/clipboard.scss'
 import { QuartzComponentProps } from "./types"
 
-export default function Body({ fileData, children }: QuartzComponentProps) {
-  const title = fileData.frontmatter?.title
-  const displayTitle = fileData.slug === "index" ? undefined : title
+export default function Body({ children }: QuartzComponentProps) {
   return <article>
-    <div class="top-section">
-      {displayTitle && <h1>{displayTitle}</h1>}
-    </div>
     {children}
   </article>
 }

--
Gitblit v1.10.0