{{ template "breadcrumb" dict "currentPage" .Page "id" .UniqueID }}
{{ define "breadcrumb" }}
{{ if .currentPage.Parent }}
{{ template "breadcrumb" dict "currentPage" .currentPage.Parent }}
{{ end }}
{{ $title := cond (eq .currentPage.RelPermalink "/docs/" ) "Docs" (title .currentPage.Title) }}
{{ if (ne .currentPage.Parent .IsHome) }}
{{ if eq .id .currentPage.UniqueID }}
{{ $title }}
{{ else }}
{{ $title }}
{{ end }}
{{ end }}
{{ end }}