SEO土台整備: robots.txt / sitemap.xml / JSON-LD / description拡充 (#42)#43
Merged
Conversation
- app/robots.ts: 全許可 + sitemap/host を canonical で参照(静的 robots.txt 生成) - app/sitemap.ts: 単一URL、lastmod は BUILD_DATE 連動(静的 sitemap.xml 生成) - app/layout.tsx: metadataBase 追加、description を検索向けに拡充、keywords 追加、 SoftwareApplication の JSON-LD を埋め込み サイゼリヤ等の他社商標キーワードは入れない方針(ブランド+ツール実用語のみ) Closes #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
OGP は設定済みだが、SEOの基礎工事(robots/sitemap/構造化データ)が無く meta description も薄かったため整備。
「間違いサラダ」(固有名)は元々強いので、ここは土台固め。サイゼリヤ等の他社商標キーワードは意図的に入れていない(ブランド名 + ツール実用語のみ)。
変更
app/robots.ts—User-Agent: *全許可、Sitemap/Hostを canonical(https://machigai-salad.llll-ll.com)で参照。output: 'export'で静的robots.txtを生成app/sitemap.ts— 単一URLエントリ。lastmodはBUILD_DATE(JST)連動で毎デプロイ自動更新。静的sitemap.xmlを生成app/layout.tsxmetadataBase追加(OGP絶対URL警告の解消)descriptionを検索スニペット向けに拡充(間違い探し/答え合わせ/ヒント/拡大/ブラウザで動作)。OGP・Twitter とも共有keywords追加SoftwareApplicationの JSON-LD(無料・Web・日本語)を埋め込み検証
npm run build成功。out/robots.txt・out/sitemap.xml生成を確認out/index.htmlに description / keywords / JSON-LD が焼かれていることを確認Intlの日付区切り/→-環境差)。本PRの差分(layout/robots/sitemap)とは無関係デプロイ後やること
https://machigai-salad.llll-ll.com/robots.txt・/sitemap.xmlの実機確認Closes #42