mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
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>
This commit is contained in:
parent
3d429a5ce8
commit
fbfc20ece1
|
|
@ -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…
Reference in a new issue