{{ if not .Page.Params.hide_breadcrumb }} {{ end }} {{ define "breadcrumb-links" }} {{ $max_length := 32 }} {{ if .p1.Parent }} {{ template "breadcrumb-links" (dict "p1" .p1.Parent "p2" .p2 ) }} {{ else if not .p1.IsHome }} {{ template "breadcrumb-links" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ end }} {{ $is_current_page := eq .p1.Permalink .p2.Permalink }} {{ if $is_current_page }}
  • {{ (.p1.Params.breadcrumb_title | default .p1.Title) | safeHTML | truncate $max_length }}
  • {{ else }}
  • {{ (.p1.Params.breadcrumb_title | default .p1.Title) | safeHTML | truncate $max_length }}
  • {{ end }} {{ end }}