{{ $error := false }} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "breadcrumb" "args" .Params "group" "shortcode") }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{- $page := . -}} {{- $path := .Get "path" }} {{- 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" (dict "page" $page) -}} {{- end -}}