diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index 7b9815ca0..90e338730 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -6,8 +6,9 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro export default (() => { const Head: QuartzComponent = ({ cfg, fileData, externalResources }: QuartzComponentProps) => { + const titleSuffix = cfg.pageTitleSuffix ?? "" const title = - (fileData.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title) + cfg.pageTitleSuffix + (fileData.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title) + titleSuffix const description = fileData.description?.trim() ?? i18n(cfg.locale).propertyDefaults.description const { css, js } = externalResources