aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-04 23:49:19 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-04 23:49:19 +0900
commit602a7889ff0805e5ee772807bbe7d13793ec8214 (patch)
treea49584bba448e984fcc20c9f2585ccc3107873a4 /src/components/ScheduleInteractive.astro
parent7f6ddd8a9991c2c48d119866a392c3e5583dc1dc (diff)
hp-archive: 行事予定ページのURLを設定ファイルに集約
- ページ移転時は src/data/schedule/config.ts とファイルの置き場所だけ変えればよい形にした - canonical・構造化データ・イベントのURLが同じ設定を参照するよう変更 - アーカイブ専用の戻るリンクに、独立時に削除する旨の目印を追加
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
-rw-r--r--src/components/ScheduleInteractive.astro5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro
index 5f33c8f..8c14f38 100644
--- a/src/components/ScheduleInteractive.astro
+++ b/src/components/ScheduleInteractive.astro
@@ -1,4 +1,7 @@
<script>
+ // URLは src/data/schedule/config.ts で一元管理している(ページ移転時はそこだけ変える)
+ import { scheduleAbsoluteUrl } from '@/data/schedule/config';
+
const CATEGORY_DEFS = [
{ icon: '👶', label: '子育て' },
{ icon: '🧓', label: '高齢者・介護' },
@@ -601,7 +604,7 @@
},
},
description: e.time,
- url: `https://yasutakeyohei.com/kodaira-data/hp-archive/schedule/#${e.rowId}`,
+ url: scheduleAbsoluteUrl(`#${e.rowId}`),
};
})
.sort((a, b) => a.startDate.localeCompare(b.startDate))