change minify to work with hugo >0.90

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
jamesk-patch-1
Toshaan Bharvani 3 years ago
parent 239670d613
commit 3868928788

@ -32,18 +32,19 @@
<link href="{{ $changelogsh.RelPermalink }}" rel="stylesheet">
{{ $variables := resources.Get "css/variables.scss"}}
{{ $variables = $variables | resources.ExecuteAsTemplate "variables.scss" . }}
{{ $header := resources.Get "css/header.scss" | resources.Minify }}
{{ $promo := resources.Get "css/promo.scss" | resources.Minify }}
{{ $home := resources.Get "css/home.scss" | resources.Minify }}
{{ $groups := resources.Get "css/groups.scss" | resources.Minify }}
{{ $bod := resources.Get "css/bod.scss" | resources.Minify }}
{{ $timeline := resources.Get "css/timeline.scss" | resources.Minify }}
{{ $pages := resources.Get "css/pages.scss" | resources.Minify }}
{{ $footer := resources.Get "css/footer.scss" | resources.Minify }}
{{ $changelog := resources.Get "css/changelog.scss" | resources.Minify }}
{{ $header := resources.Get "css/header.scss" }}
{{ $promo := resources.Get "css/promo.scss" }}
{{ $home := resources.Get "css/home.scss" }}
{{ $groups := resources.Get "css/groups.scss" }}
{{ $bod := resources.Get "css/bod.scss" }}
{{ $timeline := resources.Get "css/timeline.scss" }}
{{ $pages := resources.Get "css/pages.scss" }}
{{ $footer := resources.Get "css/footer.scss" }}
{{ $changelog := resources.Get "css/changelog.scss" }}
{{ $scss := slice $variables $header $promo $home $groups $bod $timeline $pages $footer $changelog | resources.Concat "css/custom.scss" }}
{{ $css := $scss | toCSS (dict "targetPath" "css/custom.min.css" "outputStyle" "compressed" "enableSourceMap" true) }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{ $minicss := $css | resources.Minify }}
<link rel="stylesheet" href="{{ $minicss.RelPermalink }}">
<link href="{{ "lib/font-awesome/css/all.min.css" | relURL }}" rel="stylesheet" defer>
<link href="{{ "css/googlefonts_montserrat.css" | relURL }}" rel="stylesheet" defer>
</head>

Loading…
Cancel
Save