feat(seo): dynamic XML sitemap for events and blog posts - #93
Merged
Conversation
tasks/, justfile, AGENTS.md, scripts/create-*.sh and docs/CURRENT_STATE.md, DECISIONS.md, TROUBLESHOOTING.md are meto-ai / Claude Code workflow files — personal to the developer's tooling, not part of the project source. Added to .gitignore; removed from tracking with git rm --cached (files remain on disk). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds GET /api/events/sitemap.xml that serves all active events and published blog posts as a standards-compliant XML sitemap. Static landing pages are included with hand-tuned changefreq/priority. Updates robots.txt to declare both sitemap URLs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extracts injectJsonLd() helper into seo.js, then adds structured data to all 5 category landing pages (CollectionPage schema) and BlogPage (Blog schema with BlogPosting entries). Gives Google rich schema signals on every major entry point beyond the already-covered EventDetailPage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/events/sitemap.xml— serves all active events and published blog posts as a standards-compliant XML sitemap (sitemaps.org 0.9 schema)app/services/sitemap_service.pybuilds the XML: 10 static landing pages with hand-tunedchangefreq/priority, then dynamic event URLs (/etkinlik/{id}) withlastmodfromlast_seen_at, then blog post URLs (/blog/{slug})frontend/public/robots.txtto declare both sitemap URLs (/sitemap.xmlprerender +/api/events/sitemap.xmldynamic)tests/unit/test_sitemap_service.py— covers XML validity, static pages, event/post URL inclusion,lastmodformatting, special-char escapingTest plan
pytest tests/unit/test_sitemap_service.py -v— 8 tests passcurl http://localhost:8000/api/events/sitemap.xmlreturnsContent-Type: application/xmlwith valid XMLcurl https://eventradar.dev/robots.txtshows both Sitemap lineshttps://eventradar.dev/api/events/sitemap.xmlto Google Search Console🤖 Generated with Claude Code