aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pages/og
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 /src/pages/og
parentaa2289f8c2e82c7612f90342fa5f98032b8647ea (diff)
hp-archive: OGP画像を修正し、市Xの新着4件を追加
- kodaira-data配下のOGP画像を生成し、scheduleの404を解消 - hp-archiveのOGPタイトルをfrontmatterに合わせて修正 - 市公式Xの10月20日の新着4件を追加(昭島市の投稿は除外)
Diffstat (limited to 'src/pages/og')
-rw-r--r--src/pages/og/[slug].jpg.ts3
1 files changed, 1 insertions, 2 deletions
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, "/")