mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 12:50:40 +00:00
use title shortcode in breadcrumb nav
This commit is contained in:
parent
3c594349fb
commit
b45afba0b9
@ -9,7 +9,8 @@
|
|||||||
{{ define "breadcrumb" }}
|
{{ define "breadcrumb" }}
|
||||||
{{ $parent := .page.Parent }}
|
{{ $parent := .page.Parent }}
|
||||||
{{ if $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 }}
|
{{ template "breadcrumb" dict "page" $parent "value" $value }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .value | safeHTML }}
|
{{ .value | safeHTML }}
|
||||||
|
Loading…
Reference in New Issue
Block a user