use title shortcode in breadcrumb nav

uci-hugo-doc
Robert Kaussow 2020-02-16 23:17:45 +01:00
parent 3c594349fb
commit b45afba0b9
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,8 @@
{{ define "breadcrumb" }}
{{ $parent := .page.Parent }}
{{ if $parent }}
{{ $value := (printf "<a href='%s'>%s</a> / %s" $parent.RelPermalink $parent.Title .value) }}
{{ $name := (partial "title" $parent) }}
{{ $value := (printf "<a href='%s'>%s</a> / %s" $parent.RelPermalink $name .value) }}
{{ template "breadcrumb" dict "page" $parent "value" $value }}
{{ else }}
{{ .value | safeHTML }}