Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serg/yourfolio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head-includes.html')
-rw-r--r--layouts/partials/head-includes.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/head-includes.html b/layouts/partials/head-includes.html
index 5fff50f..d5c872c 100644
--- a/layouts/partials/head-includes.html
+++ b/layouts/partials/head-includes.html
@@ -323,7 +323,12 @@
}
</style>
<noscript id="deferredCss">
- <link rel="stylesheet" href="{{`app.css` | relURL}}">
+ {{$sassOptions := (dict "targetPath" "css/app.css")}}
+ {{$css := resources.Get "scss/app.scss" | toCSS $sassOptions}}
+ {{if eq (hugo.Environment) "production" | or (eq .Site.Params.env "production")}}
+ {{$css = $css | minify | fingerprint}}
+ {{end}}
+ <link rel="stylesheet" href="{{$css.RelPermalink}}">
</noscript>
<script>
document.createElement("picture");