diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 92043c8..0e29e01 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -103,3 +103,4 @@ - [Kirill Feoktistov](https://feoktistoff.org) - [leins275](https://github.com/LanskovNV) - [Michael Weiss](https://mweiss.ch) +- [Simon Pai](https://github.com/simonpai) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 215ff37..2c9adc6 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -61,7 +61,13 @@ {{ end }} {{ range .Site.Params.customCSS }} - + {{ if $.Site.IsServer }} + {{ $styles := resources.Get . }} + + {{ else }} + {{ $styles := resources.Get . | minify | fingerprint }} + + {{ end }} {{ end }} {{ range .Site.Params.customSCSS }} @@ -123,7 +129,13 @@ {{ end }} {{ range .Site.Params.customJS }} - + {{ if $.Site.IsServer }} + {{ $script := resources.Get . }} + + {{ else }} + {{ $script := resources.Get . | minify | fingerprint }} + + {{ end }} {{ end }} {{ template "_internal/google_analytics.html" . }}