From 7362076ec75e7c324c798aea3355aafa9eb79f29 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Fri, 20 Nov 2026 14:31:45 +0900 Subject: ScheduleInteractive.astro: パブコメの締切表示を案件ごとに修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 見出しの「(12月19日まで)」は全案件の締切ではないため、各項目に個別の締切を添える - events.mdx: 愛称・ロゴマーク投票をページ上部(イベントカレンダーの前)へ移動 --- src/components/ScheduleInteractive.astro | 14 +++++++------- src/content/docs/kodaira/events.mdx | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 9b596e2..259d1d2 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -316,17 +316,17 @@ const activePubcomments = pubcomments.filter((p) => key >= p.from && key <= p.to); let pubcommentHtml = ''; if (activePubcomments.length) { - const until = activePubcomments - .map((p) => p.to) - .sort() - .slice(-1)[0]; - const [, untilMonth, untilDay] = until.split('-').map(Number); + // 締切は案件ごとに違うので、見出しには日付を出さず、各項目に締切を添える。 + const deadline = (iso) => { + const [, month, day] = iso.split('-').map(Number); + return `${month}月${day}日`; + }; pubcommentHtml = `
-

📝 パブリックコメント受付中(${untilMonth}月${untilDay}日まで)

+

📝 パブリックコメント受付中

`; diff --git a/src/content/docs/kodaira/events.mdx b/src/content/docs/kodaira/events.mdx index c5bacb0..5dd03d4 100644 --- a/src/content/docs/kodaira/events.mdx +++ b/src/content/docs/kodaira/events.mdx @@ -61,6 +61,8 @@ import Campaigns from '../../../components/Campaigns.astro'; + + ## イベントカレンダー カテゴリと日付を選ぶと、その日の小平市のイベント等一覧と会場地図が下に表示されます。 @@ -119,8 +121,6 @@ import Campaigns from '../../../components/Campaigns.astro'; {/* */} - - ## パブリックコメント(市民意見の募集) -- cgit v1.3.1