{{/* favicon */}} {{/* Rose pine */}} {{- $rosepine := resources.Get "css/rose-pine.min.css" -}} {{- partial "font.html" . -}} {{/* Site CSS */}} {{- $styles := resources.Get "css/toigian.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}} {{- $light_theme := resources.Get "css/light.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}} {{- $dark_theme := resources.Get "css/dark.css" | postCSS (dict "config" "./assets/css/postcss.config.js") -}} {{- if not hugo.IsServer }} {{- $styles = $styles | minify | fingerprint | resources.PostProcess -}} {{- $light_theme = $light_theme | minify | fingerprint | resources.PostProcess -}} {{- $dark_theme = $dark_theme | minify | fingerprint | resources.PostProcess -}} {{ end -}} {{/* Light and dark themes */}} {{/* Main */}} {{ $main_js := resources.Get "js/main.js" }} {{- if hugo.IsProduction -}} {{ $main_js = $main_js | js.Build (dict "minify" true) | resources.Fingerprint "sha512" -}} {{- else -}} {{ $main_js = $main_js | js.Build -}} {{- end -}} {{ partial "custom/head.html" . }}