{{ if .Description }} {{ end }} {{ with index (.GetTerms "series") 0 }} {{ end }} {{ range .Params.discussionRooms }} {{ end }} {{ if not (.Site.Params.noCss) }} {{ end }} {{ if not (.Site.Params.noCss) }} {{ partial "defercss.html" (dict "url" .Site.Params.normalizeCssUrl "extra" "") }} {{ partial "defercss.html" (dict "url" .Site.Params.katexCssUrl "extra" "") }} {{ end }} {{ range .Site.Home.AlternativeOutputFormats -}} {{ end -}} {{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }} {{ $sidenotes := resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }} {{ $code := resources.Get "scss/code.scss" | resources.ToCSS | resources.Minify }} {{ $icon := resources.Get "img/favicon.png" }} {{ if not (.Site.Params.noCss) }} {{ partial "defercss.html" (dict "url" $sidenotes.Permalink "extra" "") }} {{ partial "defercss.html" (dict "url" $code.Permalink "extra" "") }} {{ end }} {{ if .Params.custom_js }} {{ range $customJs := .Params.custom_js }} {{ end }} {{ end }} {{ if hugo.IsServer }} {{ end }} {{ if .Params.bergamot }} {{ $katexComponentJs := resources.Get "js/katex-component.js" | resources.Minify }} {{ $bergamotHelpers := resources.Get "js/bergamot-helpers.js" | resources.Minify }} {{ $bergamotStyle := resources.Get "scss/bergamot.scss" | resources.ToCSS | resources.Minify }} {{ partial "defercss.html" (dict "url" $bergamotStyle.Permalink "extra" "") }} {{ if .Params.bergamot.render_presets }} {{ range $name, $rulefile := .Params.bergamot.render_presets }} {{ $file := default (resources.Get $rulefile) (page.Resources.Get $rulefile) }} {{ partial "bergamotrenderpreset.html" (dict "name" $name "file" $file.Content) }} {{ end }} {{ else }} {{ partial "bergamotrenderpreset.html" (dict "name" "default" "file" (resources.Get "bergamot/rendering/minimal.bergamot").Content) }} {{ end }} {{ if .Params.bergamot.presets }} {{ range $name, $preset := .Params.bergamot.presets }} {{ $file := default (resources.Get $preset.file) (page.Resources.Get $preset.file) }} {{ $info := dict "name" $name "prompt" $preset.prompt "query" $preset.query "file" $file.Content "renderPreset" $preset.render_preset "inputModes" $preset.input_modes }} {{ partial "bergamotpreset.html" $info }} {{ end }} {{ end }} {{ if .Params.bergamot.input_modes }} {{ range $mode := .Params.bergamot.input_modes }} {{ partial "bergamotinputmode.html" (dict "name" $mode.name "fn" $mode.fn) }} {{ end }} {{ end }} {{ end }} {{ with .Site.Params.plausibleAnalyticsDomain }} {{ end }}