{{ with .Site.Params.author }}{{ end }} {{ if .Site.Params.enableTwemoji }} {{ end }} {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/opengraph.html" . }} {{ if .Permalink }} {{ end }} {{ block "title" . }}{{ .Site.Title }}{{ end }} {{ if .Permalink }} {{ end }} {{ if .Site.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }} {{ else }} {{ $cssOpts := (dict "targetPath" "css/coder.css" ) }} {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }} {{ end }} {{ if .Site.Params.rtl }} {{ if .Site.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }} {{ else }} {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }} {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }} {{ end }} {{ end }} {{ if or (eq .Site.Params.colorscheme "auto") (eq .Site.Params.colorscheme "dark") }} {{ if .Site.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }} {{ else }} {{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }} {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }} {{ end }} {{ end }} {{ range .Site.Params.custom_css }} {{ end }} {{ range .Site.Params.custom_scss }} {{/* We don't change the targetPath to because it's transparent to users */}} {{ if $.Site.IsServer }} {{ $cssOpts := (dict "enableSourceMap" true ) }} {{ $styles := resources.Get . | toCSS $cssOpts }} {{ else }} {{ $styles := resources.Get . | toCSS | minify | fingerprint }} {{ end }} {{ end }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ hugo.Generator }} {{ $csClass := "colorscheme-light" }} {{ if eq .Site.Params.colorscheme "dark" }} {{ $csClass = "colorscheme-dark" }} {{ else if eq .Site.Params.colorscheme "auto" }} {{ $csClass = "colorscheme-auto" }} {{ end }}
{{ partial "header.html" . }}
{{ block "content" . }}{{ end }}
{{ partial "footer.html" . }}
{{ range .Site.Params.custom_js }} {{ end }} {{ template "_internal/google_analytics.html" . }} {{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }} {{- partial "analytics/fathom" . -}} {{ end }}