Skip to content

feat(site): declare canonical URL, structured data and sitemap - #2

Merged
Nain9Dev merged 1 commit into
mainfrom
fix/site-indexing
Nov 21, 2026
Merged

Nain9Dev merged 1 commit into
mainfrom
fix/site-indexing

Conversation

@Nain9Dev

Copy link
Copy Markdown
Owner

What

Make the project page indexable like the other NainDev project pages (SPEC-001):

  • <link rel="canonical"> to the page URL.
  • Open Graph and Twitter card metadata.
  • A SoftwareSourceCode JSON-LD block.
  • site/sitemap.xml with the page URL only, and site/robots.txt that allows crawling and names it.
  • A site-seo CI job that runs scripts/site-seo.test.mjs.

Why

The page declared no canonical URL and published no sitemap, so Google Search Console and Bing Webmaster had nothing to be given for it. A local audit of the public hosts flagged: no canonical, no og:image, no JSON-LD, no sitemap, no Sitemap: line in robots.txt.

Verification

  • node --test scripts/site-seo.test.mjs: 6 tests pass.
  • actionlint: clean. gitleaks: clean.

After merge

Submit the sitemap in Search Console and Bing Webmaster.

The page declared no canonical URL and published no sitemap, so it could
not be given to Google Search Console or Bing Webmaster.

Add the canonical link, Open Graph and Twitter card metadata, a
SoftwareSourceCode JSON-LD block, sitemap.xml and robots.txt. A node test
in CI keeps them in place (SPEC-001).
@Nain9Dev
Nain9Dev merged commit bf6936c into main Nov 21, 2026
1 of 2 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