From fbfc20ece1301fc5cada7449ed768c3b75eb34f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 26 Dec 2023 11:21:47 +0100 Subject: [PATCH] Rename custom.scss to _styles_project.scss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the recommended way to add/overwrite Docsy styles. Signed-off-by: Kévin Commaille --- assets/scss/{custom.scss => _styles_project.scss} | 0 layouts/partials/hooks/head-end.html | 11 ----------- 2 files changed, 11 deletions(-) rename assets/scss/{custom.scss => _styles_project.scss} (100%) diff --git a/assets/scss/custom.scss b/assets/scss/_styles_project.scss similarity index 100% rename from assets/scss/custom.scss rename to assets/scss/_styles_project.scss diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html index 7bceff45..9ce7e3e5 100644 --- a/layouts/partials/hooks/head-end.html +++ b/layouts/partials/hooks/head-end.html @@ -15,14 +15,3 @@ */}} - -{{ $scss := "scss/custom.scss"}} -{{ if .Site.IsServer }} -{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}} -{{ $css := resources.Get $scss | toCSS (dict "enableSourceMap" true) }} - -{{ else }} -{{ $css := resources.Get $scss | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }} - - -{{ end }}