| | |
| | | import { resolveToRoot } from "../path" |
| | | import { QuartzComponentProps } from "./types" |
| | | import { QuartzComponentConstructor, QuartzComponentProps } from "./types" |
| | | |
| | | export default function Head({ fileData, externalResources }: QuartzComponentProps) { |
| | | function Head({ fileData, externalResources }: QuartzComponentProps) { |
| | | const slug = fileData.slug! |
| | | const title = fileData.frontmatter?.title ?? "Untitled" |
| | | const description = fileData.description ?? "No description provided" |
| | |
| | | {js.filter(resource => resource.loadTime === "beforeDOMReady").map(resource => <script key={resource.src} {...resource} spa-preserve />)} |
| | | </head> |
| | | } |
| | | |
| | | export default (() => Head) satisfies QuartzComponentConstructor |