diff --git a/layouts/_partials/head/styles.html b/layouts/_partials/head/styles.html index 3732993..00f0b78 100644 --- a/layouts/_partials/head/styles.html +++ b/layouts/_partials/head/styles.html @@ -1,38 +1,38 @@ {{ with resources.Get "css/styles.css" -}} - {{ $opts := dict - "loaders" (dict ".png" "dataurl" ".svg" "dataurl") - "minify" (cond hugo.IsDevelopment false true) - "sourceMap" (cond hugo.IsDevelopment "linked" "none") - -}} - {{ with . | css.Build $opts -}} - {{ if hugo.IsDevelopment -}} - - {{ else -}} - {{ with . | fingerprint -}} - - {{ end -}} - {{ end }} - {{ end -}} +{{ $opts := dict + "loaders" (dict ".png" "dataurl" ".svg" "dataurl") + "minify" (cond hugo.IsDevelopment false true) + "sourceMap" (cond hugo.IsDevelopment "linked" "none") +-}} +{{ with . | css.Build $opts -}} +{{ if hugo.IsDevelopment -}} + +{{ else -}} +{{ with . | fingerprint -}} + +{{ end -}} +{{ end -}} +{{ end -}} {{ end -}} {{ if $.Param "mobilemenu" -}} - {{ with resources.Get "css/mobilemenu.css" -}} - {{ if hugo.IsDevelopment -}} - - {{ else -}} - {{ with . | minify | fingerprint -}} - - {{ end -}} - {{ end -}} - {{ end -}} +{{ with resources.Get "css/mobilemenu.css" -}} +{{ if hugo.IsDevelopment -}} + +{{ else -}} +{{ with . | minify | fingerprint -}} + +{{ end -}} +{{ end -}} +{{ end -}} {{ end -}} {{ with resources.Get "css/print.css" -}} - {{ if hugo.IsDevelopment -}} - - {{ else -}} - {{ with . | minify | fingerprint -}} - - {{ end -}} - {{ end -}} +{{ if hugo.IsDevelopment -}} + +{{ else -}} +{{ with . | minify | fingerprint -}} + +{{ end -}} +{{ end -}} {{ end -}}