{{- $error := false -}} {{- $page := . -}} {{- $path := .Get "path" | default "" }} {{- if $path -}} {{- $page = .Site.GetPage $path -}} {{- if not $page -}} {{- errorf "Invalid or missing value for param 'path': %s" .Position -}} {{- $error = true -}} {{- end -}} {{- end -}} {{- if not $error -}} {{- partial "assets/breadcrumb.html" $page -}} {{- end -}}