1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
---
// このページの構造化データ(JSON-LD)。ビルド日を更新日として出力する。
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()}日`;
const data = {
'@context': 'https://schema.org',
'@type': 'CollectionPage',
name: '小平市のイベント・行事予定カレンダー(審議会・市議会の日程も掲載)',
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>
|