Skip to content

Commit 8c9b7dc

Browse files
committed
Update Meta Tags
1 parent d8879f9 commit 8c9b7dc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/components/core/MetaTags.astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ const {
1515
image: _image = defaultImage,
1616
1717
canonical,
18+
19+
/** * @property {boolean} noindex - Controls search engine visibility.
20+
* false (Default): Allow search engines to index this page.
21+
* true: Tell search engines NOT to show this page in search results.
22+
*/
1823
noindex = false,
24+
25+
/** * @property {boolean} nofollow - Controls link crawling.
26+
* false (Default): Allow bots to follow links on this page.
27+
* true: Tell bots NOT to follow or vouch for links on this page.
28+
*/
1929
nofollow = false,
2030
2131
ogTitle = title,
@@ -51,6 +61,13 @@ const image =
5161
{noindex && <meta name="robots" content="noindex" />}
5262
{nofollow && <meta name="robots" content="nofollow" />}
5363

64+
<link
65+
rel="alternate"
66+
type="application/rss+xml"
67+
title={SITE.name}
68+
href={`${import.meta.env.BASE_URL}/rss.xml`}
69+
/>
70+
5471
<!-- Open Graph -->
5572
<meta property="og:url" content={canonical} />
5673
<meta property="og:title" content={ogTitle} />

0 commit comments

Comments
 (0)