Skip to content

Commit 6d4597d

Browse files
committed
components(Head): add rss feed to Head
Closes #1638
1 parent 5ccc2dc commit 6d4597d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

quartz/components/Head.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ export default (() => {
193193
<meta property="twitter:url" content={socialUrl}></meta>
194194
</>
195195
)}
196+
{cfg.baseUrl && (
197+
<>
198+
<link
199+
rel="alternate"
200+
type="application/rss+xml"
201+
title={`${cfg.pageTitle} Feed`}
202+
href={`https://${cfg.baseUrl}/index.xml`}
203+
/>
204+
</>
205+
)}
196206
<link rel="icon" href={iconPath} />
197207
<meta name="description" content={description} />
198208
<meta name="generator" content="Quartz" />

0 commit comments

Comments
 (0)