This commit is contained in:
Adrian Amaglio 2024-04-22 19:24:48 +02:00
parent 16cfd3a2d3
commit 5dca30a165

View File

@ -18,16 +18,12 @@
{{ hugo.Generator }} {{ hugo.Generator }}
{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/") -}} {{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/") -}}
{{- if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
{{ else }}
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}} {{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
<link <link
rel="stylesheet" rel="stylesheet"
href="{{ $styles.Permalink }}" href="{{ $styles.Permalink }}"
integrity="{{ $styles.Data.Integrity }}" integrity="{{ $styles.Data.Integrity }}"
/> />
{{ end -}}
<!-- KaTeX support --> <!-- KaTeX support -->
{{ if .Params.math }} {{ if .Params.math }}