diff --git a/layouts/_partials/meta.html b/layouts/_partials/meta.html index eeb8268..516c19a 100644 --- a/layouts/_partials/meta.html +++ b/layouts/_partials/meta.html @@ -1,27 +1,26 @@ - +{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }} - - + + + -{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }} - -{{ with resources.Get "scss/main.scss" }} - {{ $opts := dict - "enableSourceMap" (not hugo.IsProduction) - "outputStyle" (cond hugo.IsProduction "compressed" "expanded") - "targetPath" "css/main.css" - "transpiler" "dartsass" - }} - {{ with . | toCSS $opts }} - {{ if hugo.IsProduction }} - {{ with . | fingerprint "sha512" }} - - {{ end }} - {{ else }} - - {{ end }} - {{ end }} -{{ end }} +{{- with resources.Get "scss/main.scss" -}} + {{- $opts := dict + "enableSourceMap" (not hugo.IsProduction) + "outputStyle" (cond hugo.IsProduction "compressed" "expanded") + "targetPath" "css/main.css" + "transpiler" "dartsass" + -}} + {{- with . | toCSS $opts -}} + {{- if hugo.IsProduction -}} + {{- with . | fingerprint "sha512" -}} + + {{- end -}} + {{- else -}} + + {{- end -}} + {{- end -}} +{{- end -}}