Repository navigation
Conversation
#258: country pages are meant to be found, by people and in search. - "Countries" joins the navigation (desktop and mobile). - /countries lists countries by name, with their studios and associations, biggest scenes first, instead of bare codes. Counted in the app instead of raw SQL, and without the loader's debug log. - /sitemap.xml lists the main pages, every country with something placed in it, and every game, organisation and event, with when each changed (buildSitemap). Cached for an hour. - /robots.txt keeps crawlers out of account and admin pages and points to the sitemap. A route, so the sitemap line has the real origin (BASE_URL, or the request's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks
This branch has not been deployed
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.
Last part of #258. Stacked on #256 (it touches
/countries, which #256 also changes); it retargets to main once #256 merges./countrieslists countries by name ("France: 635 studios · 73 associations") instead of bare codes ("FR"), biggest scenes first. The counting is in the app instead of raw SQL, and the loader's leftoverconsole.logof every country is gone. The title is now "Indie game scenes, country by country"./sitemap.xml: the main pages, every country the country page knows, and every game (not deleted), organisation and event, each withlastmod(buildSitemap, unit-tested). Cached for an hour. On the local copy of production data that's 3,295 URLs, and the XML is valid./robots.txt: keeps crawlers out of/admin/,/auth/,/profileand/logout, and points to the sitemap. It's a route rather than a static file, so the sitemap line carries the real origin:BASE_URL, or the request's.After deploying, submitting the sitemap in Google Search Console (and Bing Webmaster Tools) speeds up indexing. That needs ownership of the domain, so it's a manual step.
Tests
robots.txt→sitemap.xmllists countries, games, organisations and events.🤖 Generated with Claude Code