Skip to content

feat(web): make the site discoverable by search engines and AI crawlers - #15

Merged
jnahian merged 1 commit into
mainfrom
web/seo-discoverability
Sep 18, 2026
Merged

jnahian merged 1 commit into
mainfrom
web/seo-discoverability

Conversation

@jnahian

@jnahian jnahian commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

Google and AI search tools were not finding junction.jnahian.me. Crawlers were allowed in, but the site gave them little to work with:

  • /sitemap.xml returned 404, and robots.txt had no Sitemap: line.
  • No page had a meta description, canonical URL, or Open Graph tags.
  • /docs and /docs/ both returned 200, which produced duplicate URLs.
  • The README did not link to the website.

Changes

  • astro.config.mjs: set site: "https://junction.jnahian.me" so absolute URLs resolve.
  • src/pages/sitemap.xml.js: a hand-listed sitemap of the three pages, in the same pattern as llms.txt.js. This avoids adding @astrojs/sitemap for three URLs. A new page must be added to its list.
  • public/robots.txt: add the Sitemap: line.
  • Base.astro: add a meta description (defaults to site.tagline), a canonical link without the trailing slash, Open Graph and Twitter tags, and SoftwareApplication JSON-LD with the version from repo.js.
  • docs.astro and changelog.astro: pass their own descriptions.
  • README.md: link the website.

Test plan

  • npm run build passes. dist/sitemap.xml lists 3 absolute URLs, and each page has its own description and canonical link.
  • npm test passes.
  • After deploy, submit the sitemap in Google Search Console and Bing Webmaster Tools, then request indexing for the home page.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VbEbcj91KchhypLx7swfQq

The site had no sitemap, no meta description, and no canonical URL, and
/docs and /docs/ both served the same page.

- Set `site` in astro.config.mjs so absolute URLs resolve.
- Add /sitemap.xml (hand-listed, three pages) and point robots.txt at it.
- Add meta description, canonical link, Open Graph/Twitter tags, and
  SoftwareApplication JSON-LD to Base.astro; docs and changelog pass
  their own descriptions.
- Link the website from the README.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbEbcj91KchhypLx7swfQq
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junction Ready Ready Preview Sep 18, 2026 7:06pm UTC

@jnahian
jnahian merged commit 8f35e88 into main Sep 18, 2026
6 checks passed
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