Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/routes/(marketing)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
})
</script>

<svelte:head>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call making the layout the single source of truth for RSS autodiscovery. One leftover for consistency: src/routes/(marketing)/blog/[slug]/+page.svelte (~line 67) still carries the identical <svelte:head> RSS block you removed from blog/+page.svelte. It's not a duplicate-render bug — Svelte dedupes identical svelte:head elements, and the prerendered output was verified to have exactly one rss link per page — but removing it here too keeps this layout as the only source. Optional, non-blocking.

<!-- Site-wide RSS autodiscovery so feed readers pointed at any marketing
page (including the root domain) find the blog feed. -->
<link
rel="alternate"
type="application/rss+xml"
title="PostGuard Blog RSS Feed"
href="/blog/rss.xml"
/>
</svelte:head>

{#if !$isLoading}
<a class="sr-only sr-only-focusable skip-link" href="#main-content">
{$_('common.skipToMain', { default: 'Skip to main content' })}
Expand Down
9 changes: 0 additions & 9 deletions src/routes/(marketing)/blog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@
jsonLd={blogJsonLd}
/>

<svelte:head>
<link
rel="alternate"
type="application/rss+xml"
title="PostGuard Blog RSS Feed"
href="/blog/rss.xml"
/>
</svelte:head>

<div class="blog-index">
<div class="header">
<h1>Blog</h1>
Expand Down