aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleSeo.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-01 21:53:47 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-01 21:53:47 +0900
commit9a48acc5eeab8f79062dc34a02b5ec292ebdf555 (patch)
tree03a8b28c75e335f5bde7aa0ef62ce4e829e96306 /src/components/ScheduleSeo.astro
parent6de625ae9fdc1d19d9aa3908fd5ebdcc4a2aa359 (diff)
hp-archive: 行事予定ページのSEOを改善
- タイトルと説明文に「行事予定」「傍聴」を追加 - CollectionPage とイベントの ItemList の構造化データを出力 - 最終更新日をページ冒頭に表示 - 案内ページのリンクカードの文言を具体化
Diffstat (limited to 'src/components/ScheduleSeo.astro')
-rw-r--r--src/components/ScheduleSeo.astro32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/components/ScheduleSeo.astro b/src/components/ScheduleSeo.astro
new file mode 100644
index 0000000..0eadb46
--- /dev/null
+++ b/src/components/ScheduleSeo.astro
@@ -0,0 +1,32 @@
+---
+// このページの構造化データ(JSON-LD)。ビルド日を更新日として出力する。
+const url = 'https://yasutakeyohei.com/kodaira-data/hp-archive/schedule/';
+const updated = new Date();
+const iso = updated.toISOString().slice(0, 10);
+const label = `${updated.getFullYear()}年${updated.getMonth() + 1}月${updated.getDate()}日`;
+
+const data = {
+ '@context': 'https://schema.org',
+ '@type': 'CollectionPage',
+ name: '小平市のイベント・行事予定と審議会の傍聴(2026年10月〜)',
+ description:
+ '小平市のイベント・行事予定と、審議会・市議会の傍聴予定を、日程・会場・申込期限つきでまとめた一覧です。カテゴリ別の絞り込みと地図で確認できます。',
+ url,
+ inLanguage: 'ja',
+ dateModified: iso,
+ about: [
+ { '@type': 'Thing', name: '小平市のイベント' },
+ { '@type': 'Thing', name: '小平市議会の傍聴' },
+ { '@type': 'Thing', name: '小平市の審議会' },
+ ],
+ isPartOf: {
+ '@type': 'WebSite',
+ name: '小平市議 安竹洋平 公式サイト',
+ url: 'https://yasutakeyohei.com/',
+ },
+};
+---
+
+<script type="application/ld+json" set:html={JSON.stringify(data)} />
+
+<p class="schedule-updated">最終更新:{label}</p>