{{ $scr := .Scratch -}} {{ $desc := "" -}} {{ if .Params.summary -}} {{ $desc = .Params.summary -}} {{ else if .Params.abstract -}} {{ $desc = .Params.abstract -}} {{ else if .IsPage -}} {{ $desc = .Summary -}} {{ else if site.Params.description -}} {{ $desc = site.Params.description -}} {{ end -}} {{ .Scratch.Set "desc" $desc -}} {{ partial "functions/parse_theme" . -}} {{ $css := site.Data.assets.css -}} {{ $js := site.Data.assets.js -}} {{ if ne ($scr.Get "primary") "#fff" }} {{ end -}} {{ if or .Params.math site.Params.math -}} {{ $mathjax_config := resources.Get "js/mathjax-config.js" -}} {{ end -}} {{ if or (eq site.Params.map.engine 2) (eq site.Params.map.engine 3) -}} {{/* printf "" (printf $css.leaflet.url $css.leaflet.version) $css.leaflet.sri | safeHTML */}} {{ end -}} {{ if eq site.Params.search.engine 2 -}} {{ printf "" (printf $css.instantsearch.url $css.instantsearch.version) $css.instantsearch.sri | safeHTML }} {{ printf "" (printf $css.instantsearchTheme.url $css.instantsearchTheme.version) $css.instantsearchTheme.sri | safeHTML }} {{ end -}} {{ $css_options := dict "targetPath" "css/ansol.css" -}} {{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}} {{- $css_options = merge $css_options (dict "outputStyle" "compressed") -}} {{- end -}} {{ $sass_template := resources.Get "scss/ansol.scss" -}} {{ $style := $sass_template | resources.ExecuteAsTemplate "ansol_parsed.scss" . | toCSS $css_options -}} {{- if (eq (getenv "HUGO_ENV") "production") -}} {{- $style = $style | minify | fingerprint "md5" -}} {{- end -}} {{ $css_options := dict "targetPath" "css/fonts.css" -}} {{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}} {{- $css_options = merge $css_options (dict "outputStyle" "compressed") -}} {{- end -}} {{ $sass_template := resources.Get "scss/fonts.scss" -}} {{ $style := $sass_template | resources.ExecuteAsTemplate "ansol_parsed.scss" . | toCSS $css_options -}} {{- if (eq (getenv "HUGO_ENV") "production") -}} {{- $style = $style | minify | fingerprint "md5" -}} {{- end -}} {{ with .OutputFormats.Get "RSS" -}} {{ end -}} {{ partial "open_graph" . }} {{ partial "jsonld/main" (dict "page" . "summary" $desc) }} {{ partial "custom_head" . }}