{"canonical_url":"https://engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/","content_markdown":"# 更新日時が共通のサイトマップを修正\n\nエクスポートが毎回すべてのファイルを書き直すことを確認し、git履歴から更新日を取得するよう変更。176件のURL中172件が同じ更新日時だったサイトマップを修正した。\n\n8月 2026\n\n**状況.** サイトマップは176ページ中172ページを同じ瞬間の最終変更と知らせていた。更新日は内容変更の約束であり、172件同時なら全面書き直しか、何も有益な情報を伝えていないかのどちらかで、些細な不正確さではなかった。\n\n**課題.** リポジトリが持たない精度を創作せず、ファイルでなく内容を表す日付が必要だった。\n\n**行動.** 毎回全ファイルを書き直すエクスポートに対し、ファイル時刻を使ったことが原因だった。明示値、コミット履歴、ファイルの順に参照する方式へ移した。優先するように見えてもフィールド名を一覧へ明記しなければ、生成器が執筆日を一切読まないという罠も記した。他にも2つ決めた。記録の執筆・改訂日は仕事の発生時期と何年も違うため、別に保持する。今年書いたページを10年前扱いにしない。また履歴開始より前に内容があったため、日付行は任意で、何も導出しない。移行日を記すより空にし、欠落より、信じられてしまう精密な誤値のほうが悪いという原則に従った。\n\n**結果.** 1か月の編集後の再同期で、186ファイルすべてでなく8ファイルだけが変わり、サイトマップが事実を伝えるようになった。同じ罠は参照順を持つ全フィールドに当てはまるため、メタデータ文書へ一般則として記した。\n\n---\n\n- 役割: デジタル発信・SEO責任者\n- カテゴリー: [Web開発](https://software.engineer.company/ja/categories/web-development/), [自動化・CI/CD](https://software.engineer.company/ja/categories/automation/), [テスト・品質保証](https://software.engineer.company/ja/categories/testing/), [Python](https://software.engineer.company/ja/categories/python/), [ブランド・マーケティング](https://software.engineer.company/ja/categories/brand-marketing/)\n- サービス: [Webサイト・CMS開発](https://software.engineer.company/ja/services/web-development/), [AIエージェントへの対応](https://software.engineer.company/ja/services/ai-agent-readiness/), [DevOps・CI/CD自動化](https://software.engineer.company/ja/services/devops-cicd/), [ブランド・マーケティング・SEO](https://software.engineer.company/ja/services/brand-marketing/)\n\n\u003chttps://engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/\u003e\n","date_modified":"2026-11-09T21:50:25Z","description":"1か月の編集後の再同期で、186ファイルすべてでなく8ファイルだけが変わり、サイトマップが事実を伝えるようになった。同じ罠は参照順を持つ全フィールドに当てはまるため、メタデータ文書へ一般則として記した。","formats":{"gemtext":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/index.gmi","gopher":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/gophermap","html":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/","json":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/index.json","markdown":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/index.md","pdf":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/index.pdf"},"kind":"page","language":"ja","title":"更新日時が共通のサイトマップを修正","url":"https://software.engineer.company/ja/portfolio/fixed-a-sitemap-with-one-shared-timestamp/","version":1}