Rename custom.scss to _styles_project.scss

This is the recommended way to add/overwrite Docsy styles.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
pull/1699/head
Kévin Commaille 5 months ago
parent 3d429a5ce8
commit fbfc20ece1
No known key found for this signature in database
GPG Key ID: 29A48C1F03620416

@ -15,14 +15,3 @@
*/}}
<link rel="preload" href="{{ "/css/fonts/Inter.css" | relURL }}" as="style">
<link rel="stylesheet" href="{{ "/css/fonts/Inter.css" | relURL }}">
{{ $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) }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
{{ else }}
{{ $css := resources.Get $scss | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }}
<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
{{ end }}

Loading…
Cancel
Save