Update quartz/components/Head.tsx

This commit is contained in:
Emile Bangma 2024-10-26 20:04:04 +02:00 committed by GitHub
parent 1389068775
commit 15369618e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,8 +74,6 @@ export default (() => {
const slug = fileData.filePath
// since "/" is not a valid character in file names, replace with "-"
const fileName = slug?.replaceAll("/", "-")
const title =
fileData.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title ?? "Untitled"
// Get file description (priority: frontmatter > fileData > default)
const fdDescription =