🚧 optimization some module design.

This commit is contained in:
凡梦星尘
2022-07-02 22:22:46 +08:00
parent a758a6bb3f
commit a2f296601d
12 changed files with 60 additions and 45 deletions

View File

@@ -21,6 +21,9 @@
{{- $scss := resources.Get "css/main.scss" }}
{{- $scss = $scss | resources.ExecuteAsTemplate "main.scss" . }}
{{- $css := $scss | toCSS (dict "targetPath" "/css/main.css" "outputStyle" "expanded") }}
{{- if hugo.IsProduction }}
{{- $css = $css | minify | fingerprint }}
{{- end }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{- if .IsPage }}
<style type="text/css">