Skip to content

Commit b6cdd43

Browse files
fix(blog): make RSS feed discoverable site-wide
The RSS autodiscovery <link> only lived on the blog index and post pages, so a feed reader pointed at the root domain (postguard.eu) or any other marketing page found no feed. Move the autodiscovery link into the marketing layout head so every public page advertises the feed, and drop the now-redundant per-page duplicate on /blog/. Refs encryption4all/postguard-business#58 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 06afaa5 commit b6cdd43

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/routes/(marketing)/+layout.svelte

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@
1919
})
2020
</script>
2121

22+
<svelte:head>
23+
<!-- Site-wide RSS autodiscovery so feed readers pointed at any marketing
24+
page (including the root domain) find the blog feed. -->
25+
<link
26+
rel="alternate"
27+
type="application/rss+xml"
28+
title="PostGuard Blog RSS Feed"
29+
href="/blog/rss.xml"
30+
/>
31+
</svelte:head>
32+
2233
{#if !$isLoading}
2334
<a class="sr-only sr-only-focusable skip-link" href="#main-content">
2435
{$_('common.skipToMain', { default: 'Skip to main content' })}

src/routes/(marketing)/blog/+page.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@
5454
jsonLd={blogJsonLd}
5555
/>
5656

57-
<svelte:head>
58-
<link
59-
rel="alternate"
60-
type="application/rss+xml"
61-
title="PostGuard Blog RSS Feed"
62-
href="/blog/rss.xml"
63-
/>
64-
</svelte:head>
65-
6657
<div class="blog-index">
6758
<div class="header">
6859
<h1>Blog</h1>

0 commit comments

Comments
 (0)