diff options
Diffstat (limited to 'layouts/partials/head/css.html')
-rw-r--r-- | layouts/partials/head/css.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 0079b5f..0b3f461 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -1,11 +1,11 @@ -{{ $bundleRaw := resources.Get "sass/style.sass" | resources.ExecuteAsTemplate "style/main.tmp.css" . }} +{{ $bundleRaw := resources.Get "/sass/style.sass" | resources.ExecuteAsTemplate "/css/main.tmp.css" . }} {{ if .Site.IsServer }} -{{ $cssOpts := (dict "targetPath" "styles/main.css" "enableSourceMap" true ) }} +{{ $cssOpts := (dict "targetPath" "/css/main.css" "enableSourceMap" true ) }} {{ $bundle := $bundleRaw | toCSS $cssOpts }} <link rel="stylesheet" href="{{ $bundle.Permalink }}" media="screen"> {{ else }} -{{ $cssOpts := (dict "targetPath" "styles/main.css" ) }} +{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }} {{ $postCSSOpts := (dict "use" "autoprefixer" ) }} {{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }} <link rel="stylesheet" href="{{ $bundle.Permalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen"> |