Skip to content

Commit cc16124

Browse files
committed
Add optional RSS feed link and icon in footer
1 parent ccfa5c7 commit cc16124

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/components/SocialLinks.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,12 @@ const { socialLinks } = Astro.props
8888
</a>
8989
)
9090
}
91+
{
92+
socialLinks.rss && (
93+
<a href="/rss.xml" class="social-link">
94+
<span class="sr-only">RSS</span>
95+
<Icon name="rss" class="size-7" />
96+
</a>
97+
)
98+
}
9199
</div>

src/icons/rss.svg

Lines changed: 1 addition & 0 deletions
Loading

src/site.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { SiteConfig } from '@types'
22

33
const config: SiteConfig = {
44
// Absolute URL to the root of your published site, used for generating links and sitemaps.
5-
site: 'https://multiterm-astro.stelclementine.com',
5+
site: 'https://multiterm.stelclementine.com',
66
// The name of your site, used in the title and for SEO.
77
title: 'MultiTerm',
88
// The description of your site, used for SEO and RSS feed.
@@ -127,6 +127,7 @@ const config: SiteConfig = {
127127
linkedin: 'https://github.com/stelcodes/multiterm-astro',
128128
bluesky: 'https://github.com/stelcodes/multiterm-astro',
129129
twitter: 'https://github.com/stelcodes/multiterm-astro',
130+
rss: true, // Set to true to include an RSS feed link in the footer
130131
},
131132
// Configuration for Giscus comments.
132133
// To set up Giscus, follow the instructions at https://giscus.app/

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export type SocialLinks = {
124124
bluesky?: string
125125
linkedin?: string
126126
email?: string
127+
rss?: boolean
127128
}
128129

129130
export type GiscusConfig = {

0 commit comments

Comments
 (0)