{{- $title := ( .Title ) -}} {{- $siteTitle := ( .Site.Title ) -}} {{- if .IsHome -}}
{{ $siteTitle }} | Home
{{- else -}}
{{ $title }} - {{ $siteTitle }}
{{- end -}} {{- if isset .Site.Params "favicon" -}}
{{- end -}}
{{ with .OutputFormats.Get "rss" -}} {{ printf `
` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/twitter_cards.html" . -}} {{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}} {{- else if or (isset .Site.Params "social") (eq .Site.Params.mode "toggle") -}} {{ end }} {{ if .Site.Params.useCDN | default false -}}
{{- else -}} {{ $fontstyle := resources.Get "css/fonts.css" | fingerprint }}
{{ end }} {{ $style := resources.Get "css/main.css" | fingerprint }}
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") (eq .Site.Params.mode "toggle") -}} {{ $darkstyle := resources.Get "css/dark.css" | fingerprint }}
{{ end }} {{ with .Site.Params.mathjax }} {{ end }} {{ with .Site.Params.katex }}
{{ end }} {{- if isset .Site.Params "customcss" }} {{ range .Site.Params.customCSS }} {{ $customstyle := resources.Get . | fingerprint }}
{{ end }} {{- end -}} {{- range .Site.Params.customJS }} {{- if or (hasPrefix . "http://") (hasPrefix . "https://") }} {{- else if (hasPrefix . " {{- end }} {{- end }}