One category per post, display in grid without tag

Import script now takes only the first CSV category per post.
All card grid templates simplified to show just that single
category in card__sub — no tag alongside it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 17:22:20 +02:00
parent 0ae8afbf7b
commit 76f87d5009
50 changed files with 1 additions and 50 deletions
@@ -9,7 +9,6 @@ image: "armored-warrior-poppy-fields.png"
weight: 2 weight: 2
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Armor" - "Armor"
- "Poppies" - "Poppies"
-1
View File
@@ -9,7 +9,6 @@ image: "dark-geisha-ronin.png"
weight: 14 weight: 14
categories: categories:
- "Cultural" - "Cultural"
- "Dark Fantasy"
tags: tags:
- "Geisha" - "Geisha"
- "Samurai" - "Samurai"
@@ -9,7 +9,6 @@ image: "dark-pirate-in-cobbled-alley.png"
weight: 16 weight: 16
categories: categories:
- "Action" - "Action"
- "Adventure"
tags: tags:
- "Pirate" - "Pirate"
- "Cobblestone" - "Cobblestone"
@@ -9,7 +9,6 @@ image: "fairytale-queen-by-night-castle.png"
weight: 22 weight: 22
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Fairy Tale" - "Fairy Tale"
- "Ballgown" - "Ballgown"
@@ -9,7 +9,6 @@ image: "firestorm-city-warrior.png"
weight: 24 weight: 24
categories: categories:
- "Action" - "Action"
- "Urban"
tags: tags:
- "Fire" - "Fire"
- "City" - "City"
@@ -9,7 +9,6 @@ image: "forest-fairy-in-gold.png"
weight: 26 weight: 26
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Fairy" - "Fairy"
- "Forest" - "Forest"
@@ -9,7 +9,6 @@ image: "garden-glamour-in-black-latex.png"
weight: 28 weight: 28
categories: categories:
- "Boudoir" - "Boudoir"
- "Glamour"
tags: tags:
- "Latex" - "Latex"
- "Garden" - "Garden"
@@ -9,7 +9,6 @@ image: "garden-lantern-twilight.png"
weight: 29 weight: 29
categories: categories:
- "Cultural" - "Cultural"
- "Romantic"
tags: tags:
- "Japanese" - "Japanese"
- "Garden" - "Garden"
@@ -9,7 +9,6 @@ image: "highland-battle-fury.png"
weight: 38 weight: 38
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Warrior" - "Warrior"
- "Battle" - "Battle"
@@ -9,7 +9,6 @@ image: "infernal-pirate-queen.png"
weight: 39 weight: 39
categories: categories:
- "Action" - "Action"
- "Adventure"
tags: tags:
- "Pirate" - "Pirate"
- "Fire" - "Fire"
@@ -9,7 +9,6 @@ image: "jungle-horizon-tribal-queen.png"
weight: 42 weight: 42
categories: categories:
- "Cultural" - "Cultural"
- "Fantasy"
tags: tags:
- "Tribal" - "Tribal"
- "Jungle" - "Jungle"
@@ -9,7 +9,6 @@ image: "lantern-garden-thai-evening.png"
weight: 44 weight: 44
categories: categories:
- "Cultural" - "Cultural"
- "Romantic"
tags: tags:
- "Thai" - "Thai"
- "Garden" - "Garden"
@@ -9,7 +9,6 @@ image: "lantern-glow-onsen-serenity.png"
weight: 45 weight: 45
categories: categories:
- "Cultural" - "Cultural"
- "Romantic"
tags: tags:
- "Onsen" - "Onsen"
- "Kimono" - "Kimono"
@@ -9,7 +9,6 @@ image: "latex-elegance-among-hedges.png"
weight: 46 weight: 46
categories: categories:
- "Boudoir" - "Boudoir"
- "Glamour"
tags: tags:
- "Latex" - "Latex"
- "Gown" - "Gown"
@@ -9,7 +9,6 @@ image: "leather-goddess-city-twilight.png"
weight: 47 weight: 47
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Leather" - "Leather"
- "Gloves" - "Gloves"
@@ -9,7 +9,6 @@ image: "library-power-silhouette.png"
weight: 48 weight: 48
categories: categories:
- "Elegant" - "Elegant"
- "Gothic"
tags: tags:
- "Library" - "Library"
- "Silver Hair" - "Silver Hair"
@@ -9,7 +9,6 @@ image: "luxury-streetwear-noir.png"
weight: 49 weight: 49
categories: categories:
- "Luxury" - "Luxury"
- "Lifestyle"
tags: tags:
- "Luxury" - "Luxury"
- "Car" - "Car"
@@ -9,7 +9,6 @@ image: "midnight-motorcycle-urban-rider.png"
weight: 50 weight: 50
categories: categories:
- "Action" - "Action"
- "Urban"
tags: tags:
- "Motorcycle" - "Motorcycle"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "midnight-rain-dancer.png"
weight: 51 weight: 51
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Latex" - "Latex"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "monsoon-rain-dance.png"
weight: 52 weight: 52
categories: categories:
- "Cultural" - "Cultural"
- "Fantasy"
tags: tags:
- "Tribal" - "Tribal"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "moonlit-bridal-sea-column.png"
weight: 53 weight: 53
categories: categories:
- "Nature" - "Nature"
- "Romantic"
tags: tags:
- "Bridal" - "Bridal"
- "Moonlit" - "Moonlit"
@@ -9,7 +9,6 @@ image: "neon-vigilante-rainy-streets.png"
weight: 59 weight: 59
categories: categories:
- "Action" - "Action"
- "Urban"
tags: tags:
- "Superhero" - "Superhero"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "noir-trench-coat-phantom.png"
weight: 61 weight: 61
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Noir" - "Noir"
- "Trench Coat" - "Trench Coat"
@@ -9,7 +9,6 @@ image: "norse-shield-maiden-vista.png"
weight: 62 weight: 62
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Viking" - "Viking"
- "Shield Maiden" - "Shield Maiden"
@@ -9,7 +9,6 @@ image: "paris-bridge-crimson-dusk.png"
weight: 63 weight: 63
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Paris" - "Paris"
- "Eiffel Tower" - "Eiffel Tower"
@@ -9,7 +9,6 @@ image: "rain-drenched-voodoo-warrior.png"
weight: 68 weight: 68
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Voodoo" - "Voodoo"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "rain-night-action-kick.png"
weight: 69 weight: 69
categories: categories:
- "Action" - "Action"
- "Urban"
tags: tags:
- "Action" - "Action"
- "Rain" - "Rain"
-1
View File
@@ -9,7 +9,6 @@ image: "rainy-city-badass.png"
weight: 70 weight: 70
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Leather Jacket" - "Leather Jacket"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "rainy-city-dark-bodysuit.png"
weight: 72 weight: 72
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Tattoo" - "Tattoo"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "red-lantern-night-soak.png"
weight: 75 weight: 75
categories: categories:
- "Cultural" - "Cultural"
- "Romantic"
tags: tags:
- "Onsen" - "Onsen"
- "Lanterns" - "Lanterns"
@@ -9,7 +9,6 @@ image: "royal-warrior-guards-the-gate.png"
weight: 78 weight: 78
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Warrior" - "Warrior"
- "Armor" - "Armor"
@@ -9,7 +9,6 @@ image: "shield-maiden-defends-the-keep.png"
weight: 79 weight: 79
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Shield Maiden" - "Shield Maiden"
- "Armor" - "Armor"
@@ -9,7 +9,6 @@ image: "silver-dress-by-the-benz.png"
weight: 80 weight: 80
categories: categories:
- "Luxury" - "Luxury"
- "Lifestyle"
tags: tags:
- "Luxury" - "Luxury"
- "Car" - "Car"
@@ -9,7 +9,6 @@ image: "silver-dress-neon-boulevard.png"
weight: 81 weight: 81
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Neon" - "Neon"
- "City" - "City"
@@ -9,7 +9,6 @@ image: "silver-ruins-swordswoman.png"
weight: 82 weight: 82
categories: categories:
- "Fantasy" - "Fantasy"
- "Mythology"
tags: tags:
- "Armor" - "Armor"
- "Swords" - "Swords"
@@ -9,7 +9,6 @@ image: "starry-night-luxury-pose.png"
weight: 84 weight: 84
categories: categories:
- "Luxury" - "Luxury"
- "Lifestyle"
tags: tags:
- "Luxury" - "Luxury"
- "Car" - "Car"
@@ -9,7 +9,6 @@ image: "sun-blessed-warrior-and-wolf.png"
weight: 88 weight: 88
categories: categories:
- "Cultural" - "Cultural"
- "Fantasy"
tags: tags:
- "Warrior Princess" - "Warrior Princess"
- "Wolf" - "Wolf"
@@ -9,7 +9,6 @@ image: "sunset-pagoda-coastal-reclining.png"
weight: 90 weight: 90
categories: categories:
- "Cultural" - "Cultural"
- "Romantic"
tags: tags:
- "Pagoda" - "Pagoda"
- "Coastal" - "Coastal"
@@ -9,7 +9,6 @@ image: "tattoo-warrior-night-rain.png"
weight: 91 weight: 91
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Tattoo" - "Tattoo"
- "Rain" - "Rain"
@@ -9,7 +9,6 @@ image: "tattooed-dusk-ocean-vista.png"
weight: 92 weight: 92
categories: categories:
- "Beach" - "Beach"
- "Outdoor"
tags: tags:
- "Beach" - "Beach"
- "Ocean" - "Ocean"
@@ -9,7 +9,6 @@ image: "temple-raider-ancient-ruins.png"
weight: 95 weight: 95
categories: categories:
- "Action" - "Action"
- "Adventure"
tags: tags:
- "Ruins" - "Ruins"
- "Ancient" - "Ancient"
@@ -9,7 +9,6 @@ image: "tropical-goddess-terrace.png"
weight: 97 weight: 97
categories: categories:
- "Cultural" - "Cultural"
- "Fantasy"
tags: tags:
- "Belly Dancer" - "Belly Dancer"
- "Tropical" - "Tropical"
@@ -9,7 +9,6 @@ image: "underwater-dance-with-sharks.png"
weight: 98 weight: 98
categories: categories:
- "Beach" - "Beach"
- "Outdoor"
tags: tags:
- "Underwater" - "Underwater"
- "Sharks" - "Sharks"
@@ -9,7 +9,6 @@ image: "velvet-gown-evening-drive.png"
weight: 99 weight: 99
categories: categories:
- "Luxury" - "Luxury"
- "Lifestyle"
tags: tags:
- "Luxury" - "Luxury"
- "Car" - "Car"
@@ -9,7 +9,6 @@ image: "wet-street-midnight-noir.png"
weight: 101 weight: 101
categories: categories:
- "Urban" - "Urban"
- "Noir"
tags: tags:
- "Noir" - "Noir"
- "Rain" - "Rain"
-1
View File
@@ -50,7 +50,6 @@
<h2 class="card__title">{{ $p.Title }}</h2> <h2 class="card__title">{{ $p.Title }}</h2>
<div class="card__sub"> <div class="card__sub">
<span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span> <span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span>
{{- if $p.Params.tags }}<span class="dot"></span><span>{{ index $p.Params.tags 0 }}</span>{{ end }}
</div> </div>
<p class="card__desc">{{ $p.Params.description }}</p> <p class="card__desc">{{ $p.Params.description }}</p>
</div> </div>
-1
View File
@@ -40,7 +40,6 @@
<h2 class="card__title">{{ $p.Title }}</h2> <h2 class="card__title">{{ $p.Title }}</h2>
<div class="card__sub"> <div class="card__sub">
<span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span> <span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span>
{{- if $p.Params.tags }}<span class="dot"></span><span>{{ index $p.Params.tags 0 }}</span>{{ end }}
</div> </div>
<p class="card__desc">{{ $p.Params.description }}</p> <p class="card__desc">{{ $p.Params.description }}</p>
</div> </div>
-1
View File
@@ -45,7 +45,6 @@
<h2 class="card__title">{{ $p.Title }}</h2> <h2 class="card__title">{{ $p.Title }}</h2>
<div class="card__sub"> <div class="card__sub">
<span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span> <span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span>
{{- if $p.Params.tags }}<span class="dot"></span><span>{{ index $p.Params.tags 0 }}</span>{{ end }}
</div> </div>
<p class="card__desc">{{ $p.Params.description }}</p> <p class="card__desc">{{ $p.Params.description }}</p>
</div> </div>
-1
View File
@@ -35,7 +35,6 @@
<h2 class="card__title">{{ $p.Title }}</h2> <h2 class="card__title">{{ $p.Title }}</h2>
<div class="card__sub"> <div class="card__sub">
<span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span> <span>{{ index ($p.Params.categories | default (slice "")) 0 }}</span>
{{- if $p.Params.tags }}<span class="dot"></span><span>{{ index $p.Params.tags 0 }}</span>{{ end }}
</div> </div>
<p class="card__desc">{{ $p.Params.description }}</p> <p class="card__desc">{{ $p.Params.description }}</p>
</div> </div>
+1 -1
View File
@@ -45,7 +45,7 @@ for idx, row in enumerate(matched, start=1):
raw_cat = row.get("category", "").strip() raw_cat = row.get("category", "").strip()
raw_tags = row.get("tags", "").strip() raw_tags = row.get("tags", "").strip()
cats = [c.strip() for c in raw_cat.split(",") if c.strip()] cats = [raw_cat.split(",")[0].strip()] if raw_cat.strip() else ["Uncategorised"]
tags = [t.strip() for t in raw_tags.split(",") if t.strip()] tags = [t.strip() for t in raw_tags.split(",") if t.strip()]
cats_yaml = "\n".join(f' - "{c}"' for c in cats) cats_yaml = "\n".join(f' - "{c}"' for c in cats)