Skip to content

Commit

Permalink
πŸš‰
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Apr 22, 2022
1 parent 8336629 commit 05b47cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/PageHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const PageHead: React.FC<
url?: string
}
> = ({ site, title, description, pageId, image, url }) => {
const rssFeedUrl = `${config.host}/feed.xml`

title = title ?? site?.name
description = description ?? site?.description

Expand Down Expand Up @@ -67,6 +69,13 @@ export const PageHead: React.FC<
</>
)}

<link
rel='alternate'
type='application/rss+xml'
href={rssFeedUrl}
title={site?.name}
/>

<meta property='og:title' content={title} />
<meta name='twitter:title' content={title} />
<title>{title}</title>
Expand Down

0 comments on commit 05b47cf

Please sign in to comment.