{{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }} {{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }} {{ if .File }} {{ $.Scratch.Set "geekdocFilePath" (default .File.Path .Page.Params.geekdocFilePath) }} {{ else }} {{ $.Scratch.Set "geekdocFilePath" false }} {{ end }} {{ define "breadcrumb" }} {{$parent := .page.Parent }} {{ if $parent }} {{ $value := (printf "%s / %s" $parent.RelPermalink $parent.Title .value) }} {{ template "breadcrumb" dict "page" $parent "value" $value }} {{ else }} {{ .value | safeHTML }} {{ end }} {{ end }}
{{ $showBreadcrumb := (and (default true .Page.Params.geekdocBreadcrumb) (default true .Site.Params.geekdocBreadcrumb)) }} {{if $showBreadcrumb }} {{ $name := (partial "title" .) }} {{ template "breadcrumb" dict "page" . "value" $name }} {{ end }} {{ if and ($.Scratch.Get "geekdocFilePath") $geekdocRepo $geekdocEditPath }} Edit this page {{ end }}