mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
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
|
|
}
|
|
}
|