Skip to content

fix: Repair broken sitemap and RSS links in footer - #20

Merged
DannyvdSluijs merged 1 commit into
mainfrom
fix/footer-sitemap-rss-links
Aug 19, 2026
Merged

fix: Repair broken sitemap and RSS links in footer#20
DannyvdSluijs merged 1 commit into
mainfrom
fix/footer-sitemap-rss-links

Conversation

@DannyvdSluijs

Copy link
Copy Markdown
Contributor

Fixes#6

The footer linked to sitemap.html, but Hyde writes the sitemap as sitemap.xml, so the link 404'd. It also linked feed.xml unconditionally, which is never generated — Features::hasRss() requires at least one Markdown post and _posts/ is empty.

  • Point the sitemap link at sitemap.xml
  • Guard both links with Features::hasSitemap() / Features::hasRss(), so the RSS link returns automatically if a blog is ever added
  • Read the RSS filename from RssFeedGenerator::getFilename() instead of hardcoding it
  • Fix the "site was build" typo, and switch the Documentation link to Hyde::relativeLink() to match the other internal links

The rebuilt _site was generated with SITE_URL set to the production URL, matching the CI workflow, so it now contains sitemap.xml and the output the deployed site actually serves. It also picks up the strict mode docs, which were not rebuilt in #19.

Note: _site/docs/community-guide.html and _site/docs/configuration.html are pre-existing orphans with no source in _docs/. Left untouched here.

🤖 Generated with Claude Code

The footer linked to sitemap.html, but Hyde writes the sitemap as
sitemap.xml, so the link 404'd. It also linked feed.xml
unconditionally, which is never generated: Features::hasRss()
requires at least one Markdown post and _posts/ is empty.
Point the sitemap link at sitemap.xml and wrap both links in
Features::hasSitemap() / Features::hasRss() guards, so the RSS link
returns automatically if a blog is ever added. Take the RSS filename
from RssFeedGenerator::getFilename() instead of hardcoding it.
Also fix the "site was build" typo and switch the Documentation link
to Hyde::relativeLink() to match the other internal links.
The rebuilt _site was generated with SITE_URL set to the production
URL, matching the CI build, so it now contains sitemap.xml and the
page output the deployed site actually serves. It also picks up the
strict mode docs, which were not rebuilt in #19.
Fixes#6
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@DannyvdSluijs
DannyvdSluijs merged commit bd40a9b into mainAug 19, 2026
@DannyvdSluijs
DannyvdSluijs deleted the fix/footer-sitemap-rss-links branch August 19, 2026 18:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sitemap and rss map link in the footer is broken

1 participant

@DannyvdSluijs