{{- partial "meta.html" . }}
{{ .Title }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }}
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }} {{- else }} {{- range .AlternativeOutputFormats }} {{- if ne .Name "JSON" }}
{{- end }} {{- end }} {{- end }} {{- if and (ne .Site.Params.disableSeoHiddenPages true) (ne .Site.Params.disableSearchHiddenPages true) }} {{- range .AlternativeOutputFormats }} {{- if eq .Name "JSON" }}
{{- end }} {{- end }} {{- end }} {{- partial "favicon.html" . }} {{- partial "stylesheet.html" . }} {{- partial "custom-header.html" . }} {{- partial "menu.html" . }}
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }} {{- if $showPrevNext }} {{- $parent := .Parent }} {{- $ispublished := true }} {{- if $parent }} {{- $ispublished = gt (int (len $parent.Permalink)) 0 }} {{- end }}
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }} {{- with ($.Scratch.Get "relearnNextPage") }}
{{- end }} {{- else }}
{{- end }}
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }} {{- with ($.Scratch.Get "relearnPrevPage") }}
{{- end}} {{- else }}
{{- end}}
{{- end }} {{- if .Site.Params.editURL }} {{- $File := .File }} {{- $Site := .Site }} {{- if $File }} {{- with $File.Path }}
{{- end }} {{- end }} {{- end }} {{- $defaultDisableToc := .Site.Params.disableToc | default false }} {{- $currentDisableToc := .Params.disableToc | default $defaultDisableToc }} {{- $hastoc := not (eq 0 (int (len (.TableOfContents | plainify)))) }} {{- $toc := (and $hastoc (not $currentDisableToc) (not .Params.chapter)) }}
{{- if $toc }}
{{- end }} {{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }} {{- if $showBreadcrumb }}
{{- template "breadcrumb" dict "page" . "depth" 0 }}
{{- else }}
{{ .Title }}
{{- end }}
{{- if $toc }} {{- partial "toc.html" . }} {{- end }}
{{- if .Params.chapter }}
{{- end }}
{{- partial "tags.html" . }}
{{- if and (not .IsHome) (not .Params.chapter) }}
{{ if eq .Kind "term" }}{{ .Data.Singular | humanize }} {{ default "::" .Site.Params.titleSeparator }} {{ end }}{{ .Title }}
{{- end }} {{- define "breadcrumb" }} {{- $parent := .page.Parent }} {{- $ispublished := gt (int (len .page.Permalink)) 0 }} {{- $depth := .depth }} {{- if $ispublished }} {{- $depth = add $depth 1 }} {{- end }} {{- if $parent }} {{- template "breadcrumb" dict "page" $parent "depth" $depth }} {{- end }} {{- if $ispublished }}
{{ .page.Title }}
{{ if .depth }} > {{ end }}
{{- end }} {{- end }}