From b45afba0b9b62c5ddf97a88b15c8da20ee60f8b4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 16 Feb 2020 23:17:45 +0100 Subject: [PATCH] use title shortcode in breadcrumb nav --- layouts/partials/page-header.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 22dfd6a..243d0fb 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -7,9 +7,10 @@ {{ end }} {{ define "breadcrumb" }} - {{$parent := .page.Parent }} + {{ $parent := .page.Parent }} {{ if $parent }} - {{ $value := (printf "%s / %s" $parent.RelPermalink $parent.Title .value) }} + {{ $name := (partial "title" $parent) }} + {{ $value := (printf "%s / %s" $parent.RelPermalink $name .value) }} {{ template "breadcrumb" dict "page" $parent "value" $value }} {{ else }} {{ .value | safeHTML }}