From 602a7889ff0805e5ee772807bbe7d13793ec8214 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Wed, 4 Nov 2026 23:49:19 +0900 Subject: hp-archive: 行事予定ページのURLを設定ファイルに集約 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ページ移転時は src/data/schedule/config.ts とファイルの置き場所だけ変えればよい形にした - canonical・構造化データ・イベントのURLが同じ設定を参照するよう変更 - アーカイブ専用の戻るリンクに、独立時に削除する旨の目印を追加 --- src/components/ScheduleSeo.astro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/components/ScheduleSeo.astro') diff --git a/src/components/ScheduleSeo.astro b/src/components/ScheduleSeo.astro index 55668f6..03bf268 100644 --- a/src/components/ScheduleSeo.astro +++ b/src/components/ScheduleSeo.astro @@ -1,6 +1,9 @@ --- // このページの構造化データ(JSON-LD)。ビルド日を更新日として出力する。 -const url = 'https://yasutakeyohei.com/kodaira-data/hp-archive/schedule/'; +import { scheduleAbsoluteUrl } from '@/data/schedule/config'; + +// URLは src/data/schedule/config.ts で一元管理している(ページ移転時はそこだけ変える) +const url = scheduleAbsoluteUrl(); const updated = new Date(); const iso = updated.toISOString().slice(0, 10); const label = `${updated.getFullYear()}年${updated.getMonth() + 1}月${updated.getDate()}日`; -- cgit v1.3.1