Skip to content

feat: add 404 page - #172

Merged
magnus-madsen merged 1 commit into
masterfrom
add-404-page
Aug 3, 2026
Merged

feat: add 404 page#172
magnus-madsen merged 1 commit into
masterfrom
add-404-page

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Summary

Item 13 from the site audit: adds src/pages/404.astro, a simple "Page Not Found" page using the shared layout and the site's existing Bootstrap conventions. Links back to the front page and documentation, plus a pointer to the issue tracker for reporting broken links.

Notes

  • Astro emits dist/404.html at the dist root — GitHub Pages, Netlify, Cloudflare Pages, and most static hosts serve it automatically for unmatched routes; no host configuration needed
  • @astrojs/sitemap excludes the 404 route from the sitemap (verified in the build output)

Testing

  • npm run build completes cleanly; dist/404.html generated with correct title and content
  • Verified dist/sitemap-0.xml does not reference the 404 page

🤖 Generated with Claude Code

Astro emits dist/404.html, which GitHub Pages, Netlify, and most
static hosts serve automatically for unmatched routes. Excluded
from the sitemap by @astrojs/sitemap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit 8b9a6ae into master Aug 3, 2026
1 check passed
@magnus-madsen
magnus-madsen deleted the add-404-page branch August 3, 2026 04:59
Sign up for free to 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.

1 participant