You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
744 B
HTML
19 lines
744 B
HTML
4 years ago
|
{{/*
|
||
|
|
||
|
This template is included at the end of each page's `<head>`.
|
||
|
|
||
|
We're using it here to include the custom CSS for the Matrix spec.
|
||
|
|
||
|
*/}}
|
||
|
|
||
|
{{ $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 }}
|