toc
This commit is contained in:
1 parent
3a29f4c86e
commit
b8c011410d
21 files changed
+233
-66
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { QuartzComponentProps } from "./types"
|
||||
|
||||
export default function ArticleTitle({ fileData }: QuartzComponentProps) {
|
||||
const title = fileData.frontmatter?.title
|
||||
const displayTitle = fileData.slug === "index" ? undefined : title
|
||||
if (displayTitle) {
|
||||
return <h1>{displayTitle}</h1>
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user