diff options
Diffstat (limited to 'src/components/ParksTable.astro')
| -rw-r--r-- | src/components/ParksTable.astro | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/components/ParksTable.astro b/src/components/ParksTable.astro index f85fea3..4de8515 100644 --- a/src/components/ParksTable.astro +++ b/src/components/ParksTable.astro @@ -162,19 +162,10 @@ function facTokens(p: Park): string { const clock = (p["時計"] || "").trim(); if (clock === "○" || clock === "あり" || clock === "有" || clock === "1") tokens.push("clock"); if (p["南西部指定管理"]) tokens.push("cm"); - // ピクニック広場・芝生広場・テーブルのある公園。 - const picnicText = `${p["公園名"] || ""} ${p["種別"] || ""} ${p["その他設備"] || ""} ${p["備考"] || ""}`; - if ( - (p["テーブル"] || "").trim() || - p["種別"] === "広場" || - p["草地広場"] || - p["多目的広場"] || - picnicText.includes("芝生") || - picnicText.includes("ピクニック") || - picnicText.includes("広場") - ) { - tokens.push("picnic"); - } + // 草地広場がある公園だけを「草地広場」で絞り込む。 + if (p["草地広場"]) tokens.push("picnic"); + // 野外卓・縁台がある公園。 + if ((p["野外卓"] || "").trim()) tokens.push("table"); return tokens.join(" "); } @@ -182,7 +173,7 @@ function facTokens(p: Park): string { // ラベル文字は使わず、アイコンで項目を示す。 const DETAIL_FIELDS: { key: string; icon: string }[] = [ { key: "ベンチ・椅子", icon: "🪑" }, - { key: "テーブル", icon: "🍽" }, + { key: "野外卓", icon: "🍽" }, { key: "シェルター等", icon: "⛱" }, { key: "草地広場", icon: "🌿" }, { key: "多目的広場", icon: "🏟" }, |
