aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-21 07:38:05 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-21 07:38:05 +0900
commitc60c1803dc4942a79b9c77bc20335390fa77d3ad (patch)
tree9a9d39925ca50512e6d4c6fc0d2cb6e3f1f0fe70
parentaa2289f8c2e82c7612f90342fa5f98032b8647ea (diff)
hp-archive: OGP画像を修正し、市Xの新着4件を追加
- kodaira-data配下のOGP画像を生成し、scheduleの404を解消 - hp-archiveのOGPタイトルをfrontmatterに合わせて修正 - 市公式Xの10月20日の新着4件を追加(昭島市の投稿は除外)
-rw-r--r--src/components/KodairaNews.astro27
-rw-r--r--src/content/docs/kodaira-data/hp-archive.mdx1
-rw-r--r--src/pages/og/[slug].jpg.ts3
3 files changed, 29 insertions, 2 deletions
diff --git a/src/components/KodairaNews.astro b/src/components/KodairaNews.astro
index 4ba2308..c6d1ba0 100644
--- a/src/components/KodairaNews.astro
+++ b/src/components/KodairaNews.astro
@@ -36,6 +36,33 @@ const LABEL: Record<CatId, string> = {
const posts: Post[] = [
{
date: "10月20日",
+ cat: "status",
+ note: "10月7日から発生している障害の状況。暫定サイトで一部の手続きが可能",
+ links: [{ text: "ホームページの障害状況について", url: X("2112453768067604809") }],
+ },
+ {
+ date: "10月20日",
+ cat: "event",
+ note: "市のイベント情報をLoGoフォームにまとめています",
+ links: [
+ { text: "イベント情報(市のX)", url: X("2112421345372127394") },
+ { text: "LoGoフォームのイベント情報", url: "https://logoform.jp/procedure/exdH/2517" },
+ ],
+ },
+ {
+ date: "10月20日",
+ cat: "other",
+ note: "近隣9市で魅力を発信。今回は昭島市を紹介",
+ links: [{ text: "広域連携の取組(市のX)", url: X("2112378284121952706") }],
+ },
+ {
+ date: "10月20日",
+ cat: "meeting",
+ note: "10月22日(木)午後2時から、市役所5階505会議室。傍聴は当日午後1時40分から受付(定員20人)",
+ links: [{ text: "教育委員会定例会(市のX)", url: X("2112363175307813138") }],
+ },
+ {
+ date: "10月20日",
cat: "other",
note: "市報こだいら10月20日号が発行されました(1面は小川パレットのオープン)。電子版も公開されています",
links: [
diff --git a/src/content/docs/kodaira-data/hp-archive.mdx b/src/content/docs/kodaira-data/hp-archive.mdx
index ab683c5..9330d75 100644
--- a/src/content/docs/kodaira-data/hp-archive.mdx
+++ b/src/content/docs/kodaira-data/hp-archive.mdx
@@ -36,6 +36,7 @@ import SnsLinks from '@/components/SnsLinks.astro';
- **令和8年10月18日**: 市公式Xの新しいポスト(小平市民まつりの開催)を追加。
- **令和8年10月19日**: 市報こだいら10月19日号・10月20日号と過去の市公式Xのポストから、審議会等の日程と今後のイベントを追加。ページが長くなったため、今後の予定を別ページに分けた。市の臨時案内ページからリンクされているLoGoフォームのイベント情報を確認し、今後のイベントに追加。市公式Xの新しいポスト(障害状況、道路工事情報、市民まつりの終了)も追加。
- **令和8年10月20日**: 市報こだいら10月20日号から、こだいら認知症週間の催し、公民館まつり、シニア講座、子育ての相談会などのイベントを追加。今後の予定をカレンダーと分野別の絞り込みで見られるようにした。第13回「みんなでつくる音楽祭 in 小平」、小川パレットのオープニングイベント、クラウドファンディングの情報も追加。市報こだいら電子版へのリンクと、市公式Xの新しいポスト(市報10月20日号の発行、クラウドファンディングの寄附方法の変更)も追加。市報こだいら10月1日号から教育委員会定例会も追加。
+- **令和8年10月21日**: 市公式Xの10月20日のポスト(障害状況、イベント情報、広域連携、教育委員会定例会)を追加。
<div class="tech-note">
diff --git a/src/pages/og/[slug].jpg.ts b/src/pages/og/[slug].jpg.ts
index 7afbc80..a34ae74 100644
--- a/src/pages/og/[slug].jpg.ts
+++ b/src/pages/og/[slug].jpg.ts
@@ -34,7 +34,6 @@ const pages: Record<string, string> = {
"konan-eisei-kumiai": "湖南衛生組合の議員報酬・給与見直しの軌跡",
"ippan-situmon": "一般質問",
media: "メディア掲載",
- "kodaira-data--hp-archive": "小平市ホームページのアーカイブ(暫定)とお問い合わせ先(電話番号)一覧",
};
function findMdxFiles(dir: string): string[] {
@@ -65,7 +64,7 @@ export async function getStaticPaths() {
// Manual pages
for (const s of Object.keys(pages)) slugs.add(s);
// Auto-discover ippan-situmon / iinkai pages
- for (const dir of ["ippan-situmon", "iinkai"]) {
+ for (const dir of ["ippan-situmon", "iinkai", "kodaira-data"]) {
for (const f of findMdxFiles(path.join(contentDir, dir))) {
const s = f
.replace(/\\/g, "/")