docs/themes/hugo-theme-learn/layouts/partials/header.html
{{ .Hugo.Generator }} {{ partial "meta.html" . }} {{ partial "favicon.html" . }}
{{ .Title }} :: {{ .Site.Title }} {{ $assetBusting := not .Site.Params.disableAssetsBusting }} {{with .Site.Params.themeVariant}} {{end}} {{ partial "custom-header.html" . }} {{ partial "change-theme.html" . }} {{ partial "menu.html" . }}
{{if not .IsHome}}
{{ if and (or .IsPage .IsSection) .Site.Params.editURL }} {{ $File := .File }} {{ $Site := .Site }} {{with $File.Path }}
{{ end }} {{ end }} {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}} {{ if $toc }} {{ end }} {{ template "breadcrumb" dict "page" . "value" .Title }} {{ if $toc }} {{ partial "toc.html" . }} {{ end }}
{{ end }} {{ if .Params.chapter }} {{ end }} {{if and (not .IsHome) (not .Params.chapter) }}
{{end}} {{define "breadcrumb"}} {{$parent := .page.Parent }} {{ if $parent }} {{ $value := (printf "%s > %s" $parent.URL $parent.Title .value) }} {{ template "breadcrumb" dict "page" $parent "value" $value }} {{else}} {{.value|safeHTML}} {{end}} {{end}}