diff --git a/static/style.css b/assets/scss/main.scss similarity index 100% rename from static/style.css rename to assets/scss/main.scss diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5eff54a..abe664f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,7 +3,16 @@ {{ .Title }} | {{ .Site.Title }} - + {{ if .Site.IsServer }} + {{ $options := (dict "targetPath" "styles.css" "enableSourceMap" true) }} + {{ $styles := resources.Get "scss/main.scss" | toCSS $options }} + + {{ else }} + {{ $options := (dict "targetPath" "styles.css") }} + {{ $styles := resources.Get "scss/main.scss" | toCSS $options | minify }} + + {{ end }} + {{ with .OutputFormats.Get "RSS" }} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }}