From 68f0fdee9902dd829de352fb1fb3ea0abbee02f1 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Wed, 16 Oct 2024 17:43:22 -0400 Subject: [PATCH] chore(title): only append titleSuffix if not index page --- quartz/components/Head.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index 90e338730..6c30c36e1 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -6,7 +6,7 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro export default (() => { const Head: QuartzComponent = ({ cfg, fileData, externalResources }: QuartzComponentProps) => { - const titleSuffix = cfg.pageTitleSuffix ?? "" + const titleSuffix = fileData.slug !== "index" ? (cfg.pageTitleSuffix ?? "") : "" const title = (fileData.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title) + titleSuffix const description =