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.
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{{/*
|
|
|
|
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.
|
|
|
|
*/}}
|
|
|
|
{{/*
|
|
Load the Inter font.
|
|
|
|
We load it from a local copy, which is downloaded from
|
|
Google Fonts manually via a script:
|
|
https://github.com/matrix-org/matrix-spec/tree/main/static/css/fonts
|
|
*/}}
|
|
<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 }}
|