From 059848f8b0ae36e3a8fb4bd6fd3cda8531e5dce7 Mon Sep 17 00:00:00 2001
From: Abhi <31253403+abhiy13@users.noreply.github.com>
Date: Mon, 14 Jul 2025 08:00:38 +0000
Subject: [PATCH] fix(rss): add cdata to escape html content for rss feed (#2046)

---
 quartz/components/Head.tsx |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx
index 60dce6e..23183ca 100644
--- a/quartz/components/Head.tsx
+++ b/quartz/components/Head.tsx
@@ -1,7 +1,7 @@
 import { i18n } from "../i18n"
 import { FullSlug, getFileExtension, joinSegments, pathToRoot } from "../util/path"
 import { CSSResourceToStyleElement, JSResourceToScriptElement } from "../util/resources"
-import { googleFontHref } from "../util/theme"
+import { googleFontHref, googleFontSubsetHref } from "../util/theme"
 import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
 import { unescapeHTML } from "../util/escape"
 import { CustomOgImagesEmitterName } from "../plugins/emitters/ogImage"
@@ -45,6 +45,9 @@
             <link rel="preconnect" href="https://fonts.googleapis.com" />
             <link rel="preconnect" href="https://fonts.gstatic.com" />
             <link rel="stylesheet" href={googleFontHref(cfg.theme)} />
+            {cfg.theme.typography.title && (
+              <link rel="stylesheet" href={googleFontSubsetHref(cfg.theme, cfg.pageTitle)} />
+            )}
           </>
         )}
         <link rel="preconnect" href="https://cdnjs.cloudflare.com" crossOrigin="anonymous" />

--
Gitblit v1.10.0