{{- $title := ( .Title ) -}} {{- $siteTitle := ( .Site.Title ) -}} {{- if .IsHome -}} {{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} {{- 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 isset .Site.Params "customcss" }} {{ end }} {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}} {{- if isset .Site.Params "customdarkcss" }} {{- end }} {{- end }} {{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}} {{- else if (isset .Site.Params "social") -}} {{ end }} {{- if isset .Site.Params "customjs" -}} {{- range .Site.Params.customJS }} {{- if or (hasPrefix . "http://") (hasPrefix . "https://") }} {{- else }} {{- end }} {{- end }} {{- end }}