diff options
author | amzrk2 | 2020-04-14 21:06:53 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-14 21:06:53 +0800 |
commit | 77219f22508d102a92930d5801feecde35e42b76 (patch) | |
tree | f452d8b1c1ae4473f47db383054289afc1df5e97 | |
parent | baf7534870460015c194281ad98e1fef99911ef1 (diff) | |
download | hugo-theme-fuji-77219f22508d102a92930d5801feecde35e42b76.tar.gz hugo-theme-fuji-77219f22508d102a92930d5801feecde35e42b76.tar.bz2 hugo-theme-fuji-77219f22508d102a92930d5801feecde35e42b76.zip |
Compressed main CSS
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 749c213..91acb3c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,8 +13,8 @@ <title>{{ .Title }} - {{ .Site.Title }}</title> {{ end }} -{{ $sass := resources.Get "sass/main.scss" }} -{{ $style := $sass | resources.ToCSS }} +{{ $options := (dict "targetPath" "css/main.min.css" "outputStyle" "compressed") }} +{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }} <link rel="stylesheet" href="{{ $style.Permalink }}"> <script src="{{ .Site.Params.cdnVanillaLazyloadJS }}"></script> <script src="{{ .Site.Params.cdnJQueryJS }}"></script> |