Public: anyone can read this; the crew can change it.

/sitemap.xml lists /explore after the front page #5693

shipped production is serving it opened this has it
opened this

Split from #4109. Main's sitemap already lists the front page and every public, unarchived repository (sitemapXml, src/web/standards.ts:166, through sitemapRepos in src/core/listings.ts). It never lists the explorer, so a search engine reaches /explore only through links.

Done:

  • [ ] sitemapXml adds <url><loc>{origin}/explore</loc></url> right after the front page, escaped like the others.
  • [ ] A case in test/sitemap-timing.test.ts (or a new test/sitemap-explore.test.ts) asserts /explore is listed exactly once, second, and fails without the change. A private repository is still absent.
  • [ ] Before pushing, run that test, test/suspended-hidden.test.ts and bun x tsc --noEmit.

Files: src/web/standards.ts (this function only), the test. Risk: none.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs