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