{{ $toc := partial "toc.html" (dict "page" .) }} {{ $needTOC := .Scratch.Get "needTOC" }}
{{ if and $needTOC (ne .Params.force_inline_toc true) }}
{{ else }}
{{ end }} {{ if or $section.Params.sidebar_singlecard $section.Params.sidebar_multicard }}

{{ end }}
{{ if not .Parent.IsHome }} {{ end }}

{{- if .Params.icon -}} {{- partial "icon.html" .Params.icon -}} {{- end -}} {{- .Title -}}

{{ if .Params.subtitle }} {{ if (strings.HasSuffix .Params.subtitle ".") }}

MARKDOWN ERROR: subtitles should not end in a period

{{ else }}

{{ .Params.subtitle }}

{{ end }} {{ end }} {{ if or .Params.attribution (gt .Page.ReadingTime 1) }} {{ end }} {{ if $needTOC }} {{ end }}