{{ $title := .Site.Title -}} {{ if .Params.Title -}} {{ $title = printf "%s | %s" .Params.Title $title -}} {{ end -}} {{ $description := "" -}} {{ if .IsHome -}} {{ with .Site.Params.description }}{{ $description = . }}{{ end -}} {{ else if .IsPage -}} {{ if .Description -}} {{ $description = .Description -}} {{ else -}} {{ $description = .Summary -}} {{ end -}} {{ end }} {{ $title }} {{ if $description -}} {{ end -}} {{ if $description -}} {{ end -}} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{/* load mermaid if any mermaid code block */}} {{ if .Page.Store.Get "hasMermaid" }} {{ end }} {{/* load katex if enabled on front matter */}} {{ if .Params.katex }} {{ end }} {{ with and .Site.Params.remark42 .Params.show_comments }} {{ $remark42 := $.Site.Params.remark42 }} {{ end }}