Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented May 21, 2025

close https://github.com/typst-jp/typst-jp.github.io/issues/140

確認事項

  • bun run build./dist/sitemap.xmlrobots.txtが生成される

@3w36zj6 3w36zj6 requested a review from Copilot May 21, 2025 20:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds sitemap and robots.txt endpoint generation to improve the website’s SEO and to close issue #140.

  • Adds new GET endpoints in website/src/index.tsx to dynamically produce sitemap.xml and robots.txt
  • Updates website/src/components/templates/BaseTemplate.tsx to include corresponding meta and link tags for search engine indexing

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
website/src/index.tsx Introduces GET endpoints for sitemap.xml and robots.txt generation using the current date and the flattenedPages routes
website/src/components/templates/BaseTemplate.tsx Adds meta "robots" and a sitemap link to support SEO integration

Copy link
Contributor

@gomazarashi gomazarashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

websiteディレクトリでbun run buildを実行したところ、sitemap.xmlとrobots.txtが生成されたことを確認できました。

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

私の方でも確認できました。

@3w36zj6 3w36zj6 merged commit 587602a into main May 22, 2025
3 checks passed
@3w36zj6 3w36zj6 deleted the feature/add-sitemap branch May 22, 2025 10:23
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.

サイトマップを追加する

4 participants