From: Danilo M. Date: Wed, 22 Apr 2026 09:51:45 +0000 (+0200) Subject: fix: add breadcrumb to /is/ and /repository/ list pages in both languages X-Git-Tag: release_22042026-1342~8 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=97ded5db20bd901ef48b1f50abf5f7dc83e667bd;p=danix.xyz-2.git fix: add breadcrumb to /is/ and /repository/ list pages in both languages 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. --- diff --git a/themes/danix-xyz-hacker/layouts/is/list.html b/themes/danix-xyz-hacker/layouts/is/list.html index 1184b18..128414f 100644 --- a/themes/danix-xyz-hacker/layouts/is/list.html +++ b/themes/danix-xyz-hacker/layouts/is/list.html @@ -3,6 +3,9 @@
+ + {{ partial "breadcrumb.html" . }} + {{ partial "article-header.html" . }} diff --git a/themes/danix-xyz-hacker/layouts/partials/head-meta.html b/themes/danix-xyz-hacker/layouts/partials/head-meta.html index 89b5d50..34a60e2 100644 --- a/themes/danix-xyz-hacker/layouts/partials/head-meta.html +++ b/themes/danix-xyz-hacker/layouts/partials/head-meta.html @@ -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 }} diff --git a/themes/danix-xyz-hacker/layouts/repository/list.html b/themes/danix-xyz-hacker/layouts/repository/list.html index 95f1f36..2ed6b5f 100644 --- a/themes/danix-xyz-hacker/layouts/repository/list.html +++ b/themes/danix-xyz-hacker/layouts/repository/list.html @@ -1,6 +1,9 @@ {{ define "main" }}
+ + {{ partial "breadcrumb.html" . }} +