Add category level and turn the reticle into a background watermark
CI / test (push) Successful in 1m12s
CI / build-and-push (push) Successful in 2m53s

This commit is contained in:
2026-08-02 19:15:20 +02:00
parent 20beeeb420
commit 87c8f27e73
14 changed files with 464 additions and 63 deletions
+7 -1
View File
@@ -34,7 +34,13 @@ export default async function DetailPolozky({ params }: Props) {
return (
<article className="stranka detail">
<p className="zpet">
<Link href="/"> Zpět na nabídku</Link>
{typeof polozka.kategorie === 'object' && polozka.kategorie !== null ? (
<Link href={`/kategorie/${polozka.kategorie.slug}`}>
Zpět na {polozka.kategorie.nazev}
</Link>
) : (
<Link href="/"> Zpět na nabídku</Link>
)}
</p>
<h1>{polozka.nazev}</h1>