]> danix's work - danix.xyz-2.git/commitdiff
fix: add breadcrumb to /is/ and /repository/ list pages in both languages
authorDanilo M. <redacted>
Wed, 22 Apr 2026 09:51:45 +0000 (11:51 +0200)
committerDanilo M. <redacted>
Wed, 22 Apr 2026 09:51:45 +0000 (11:51 +0200)
Section list templates (is/list.html, repository/list.html) were missing
the breadcrumb partial. Also extended JSON-LD breadcrumb generation to
include section-kind pages, not just single pages.

themes/danix-xyz-hacker/layouts/is/list.html
themes/danix-xyz-hacker/layouts/partials/head-meta.html
themes/danix-xyz-hacker/layouts/repository/list.html

index 1184b1877a3e3767d50fd2c0724462298a03f690..128414f0be2928ed6929e2130f1b61c349c301aa 100644 (file)
@@ -3,6 +3,9 @@
   <div class="grid md:grid-cols-3 gap-8 max-w-7xl mx-auto content-grid">
     <!-- Article section -->
     <div class="md:col-span-2">
+      <!-- Breadcrumb -->
+      {{ partial "breadcrumb.html" . }}
+
       <!-- Article header -->
       {{ partial "article-header.html" . }}
 
index 89b5d5075c35ff9718590c278b5ae81811936379..34a60e25bfc883d4bfefa45884ee7086122f5f0c 100644 (file)
@@ -53,5 +53,5 @@
   {{ end }}
 {{ end }}
 
-{{/* Structured data: BreadcrumbList JSON-LD (single content pages only) */}}
-{{ if eq .Kind "page" }}{{ partial "breadcrumb-jsonld.html" . }}{{ end }}
+{{/* Structured data: BreadcrumbList JSON-LD (single pages and named sections) */}}
+{{ if or (eq .Kind "page") (eq .Kind "section") }}{{ partial "breadcrumb-jsonld.html" . }}{{ end }}
index 95f1f36e121256c1b6862b04e8725eacd3e8c12a..2ed6b5fbc5a15a92d7dadb8213297ac88431ee74 100644 (file)
@@ -1,6 +1,9 @@
 {{ define "main" }}
 <main class="min-h-screen px-4 py-12">
   <article class="mx-auto px-4 py-12 max-w-4xl border border-border glow-accent rounded-lg bg-bg p-8">
+    <!-- Breadcrumb -->
+    {{ partial "breadcrumb.html" . }}
+
     <!-- Page Title (Hero) -->
     <div class="mb-12">
       <h1 class="text-5xl md:text-6xl font-bold mb-4 text-accent animate-fade-in">