Skip to content

Complete the SEO head and add robots.txt - #15

Merged
kaishin merged 1 commit into
mainfrom
loop/build/seo-head-robots-txt
Nov 22, 2026
Merged

kaishin merged 1 commit into
mainfrom
loop/build/seo-head-robots-txt

Conversation

@kaishin

@kaishin kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Backlog item

Completes the first unchecked goal item in TODO.md: Complete the SEO head and add robots.txt (Tasker #516) (Goal 00f314685a5c), covering criterion C2 of the indigo-static migration goal.

Gap

src/layouts/Base.astro already had canonical, Open Graph, and Twitter tags, but no sitemap link, no generator meta, and no twitter:image even when previewImage is passed. @astrojs/sitemap builds sitemap-index.xml, but public/robots.txt did not exist.

Change

  • src/layouts/Base.astro:
    • Add <link rel="sitemap" href="/sitemap-index.xml" />.
    • Add <meta name="generator" content={Astro.generator} />.
    • Add a conditional twitter:image meta mirroring the existing conditional og:image (same previewImageURL, same attribute style as the other Twitter tags).
  • public/robots.txt (new): User-agent: *, Allow: /, Sitemap: https://4rays.net/sitemap-index.xml.
  • TODO.md: check off the completed item. No other backlog entries touched.

Title format, copy, and the commented-out icon block are unchanged; no visual change to the page.

Exclusions

The owner's items (analytics, the Netlify to Cloudflare Pages move) and the deferred items (Japanese locale, theme picker) are out of scope. Tasker is not modified in this run.

Validation

  • pnpm check — 0 errors, 0 warnings (14 files).
  • pnpm format:check — all files pass.
  • pnpm build — succeeds; dist/index.html contains the sitemap link and the generator meta (Astro v7.3.7); dist/robots.txt exists with the 4rays.net sitemap URL; dist/sitemap-index.xml built.
  • previewImage acceptance: a temporary page render with a preview image produced both og:image and twitter:image with the same resolved URL; the temporary edit was reverted before the final build, so the pushed source passes no previewImage (as on main).

No pre-existing failures; all three CI gates pass locally on this branch.


Built by: pi harness, model zai/glm-5.3-flash

@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for 4rays ready!

Name Link
🔨 Latest commit 8d4dc6c
🔍 Latest deploy log https://app.netlify.com/projects/4rays/deploys/6b0256891e98489acc6ed589
😎 Deploy Preview https://deploy-preview-15--4rays.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T02:43:42.064027Z 8d4dc6c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kaishin
kaishin merged commit caac409 into main Nov 22, 2026
5 checks passed
@kaishin
kaishin deleted the loop/build/seo-head-robots-txt branch November 22, 2026 04:00
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