diff --git a/src/pages/ch/shop/[kategorie]/[unterkategorie].astro b/src/pages/ch/shop/[kategorie]/[unterkategorie].astro index c3fbd3c..b4155cf 100644 --- a/src/pages/ch/shop/[kategorie]/[unterkategorie].astro +++ b/src/pages/ch/shop/[kategorie]/[unterkategorie].astro @@ -53,20 +53,22 @@ const weitere = alleProdukte.filter((p) => !zugeordneteSlugs.has(p.slug)); <> {/* Die persönlichen Charaktergeschichten stehen als eigene, volle Breite Boxen ÜBER der Kartenreihe — getrennt von den "Shop"-Karten darunter, die nur Foto/Preis/Infos zeigen. */} -
-
- {characterEntries.map(({ char }) => ( -
- {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} -

{char.name[lang]}

-

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

- {char.mehrLink && ( - da → - )} -
- ))} -
-
+ {characterEntries.some(({ product }) => product) && ( +
+
+ {characterEntries.filter(({ product }) => product).map(({ char }) => ( +
+ {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} +

{char.name[lang]}

+

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

+ {char.mehrLink && ( + da → + )} +
+ ))} +
+
+ )} {/* Kartenreihe wie im Shop-Grid — nur Foto, Preis und Kaufinfos, keine Geschichten. */}
diff --git a/src/pages/en/shop/[kategorie]/[unterkategorie].astro b/src/pages/en/shop/[kategorie]/[unterkategorie].astro index fd19c6e..f113dca 100644 --- a/src/pages/en/shop/[kategorie]/[unterkategorie].astro +++ b/src/pages/en/shop/[kategorie]/[unterkategorie].astro @@ -53,20 +53,22 @@ const weitere = alleProdukte.filter((p) => !zugeordneteSlugs.has(p.slug)); <> {/* Die persönlichen Charaktergeschichten stehen als eigene, volle Breite Boxen ÜBER der Kartenreihe — getrennt von den "Shop"-Karten darunter, die nur Foto/Preis/Infos zeigen. */} -
-
- {characterEntries.map(({ char }) => ( -
- {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} -

{char.name[lang]}

-

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

- {char.mehrLink && ( - here → - )} -
- ))} -
-
+ {characterEntries.some(({ product }) => product) && ( +
+
+ {characterEntries.filter(({ product }) => product).map(({ char }) => ( +
+ {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} +

{char.name[lang]}

+

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

+ {char.mehrLink && ( + here → + )} +
+ ))} +
+
+ )} {/* Kartenreihe wie im Shop-Grid — nur Foto, Preis und Kaufinfos, keine Geschichten. */}
diff --git a/src/pages/fr/shop/[kategorie]/[unterkategorie].astro b/src/pages/fr/shop/[kategorie]/[unterkategorie].astro index 6e1ad34..e122caa 100644 --- a/src/pages/fr/shop/[kategorie]/[unterkategorie].astro +++ b/src/pages/fr/shop/[kategorie]/[unterkategorie].astro @@ -53,20 +53,22 @@ const weitere = alleProdukte.filter((p) => !zugeordneteSlugs.has(p.slug)); <> {/* Die persönlichen Charaktergeschichten stehen als eigene, volle Breite Boxen ÜBER der Kartenreihe — getrennt von den "Shop"-Karten darunter, die nur Foto/Preis/Infos zeigen. */} -
-
- {characterEntries.map(({ char }) => ( -
- {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} -

{char.name[lang]}

-

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

- {char.mehrLink && ( - ici → - )} -
- ))} -
-
+ {characterEntries.some(({ product }) => product) && ( +
+
+ {characterEntries.filter(({ product }) => product).map(({ char }) => ( +
+ {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} +

{char.name[lang]}

+

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

+ {char.mehrLink && ( + ici → + )} +
+ ))} +
+
+ )} {/* Kartenreihe wie im Shop-Grid — nur Foto, Preis und Kaufinfos, keine Geschichten. */}
diff --git a/src/pages/shop/[kategorie]/[unterkategorie].astro b/src/pages/shop/[kategorie]/[unterkategorie].astro index 9554610..0984782 100644 --- a/src/pages/shop/[kategorie]/[unterkategorie].astro +++ b/src/pages/shop/[kategorie]/[unterkategorie].astro @@ -53,20 +53,22 @@ const weitere = alleProdukte.filter((p) => !zugeordneteSlugs.has(p.slug)); <> {/* Die persönlichen Charaktergeschichten stehen als eigene, volle Breite Boxen ÜBER der Kartenreihe — getrennt von den "Shop"-Karten darunter, die nur Foto/Preis/Infos zeigen. */} -
-
- {characterEntries.map(({ char }) => ( -
- {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} -

{char.name[lang]}

-

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

- {char.mehrLink && ( - hier → - )} -
- ))} -
-
+ {characterEntries.some(({ product }) => product) && ( +
+
+ {characterEntries.filter(({ product }) => product).map(({ char }) => ( +
+ {char.vorstellung && {char.vorstellung[lang].split("\n")[0]}} +

{char.name[lang]}

+

{char.vorstellung ? char.vorstellung[lang].split("\n")[1] : ""}

+ {char.mehrLink && ( + hier → + )} +
+ ))} +
+
+ )} {/* Kartenreihe wie im Shop-Grid — nur Foto, Preis und Kaufinfos, keine Geschichten. */}