aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
committertdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
commit070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c (patch)
tree99faebe7bb300e96b35f62b57f727bf5a88bb111 /themes/default/layouts
parentb9738b3feb929b6e3cfbdd3732ffb690f70c46ff (diff)
downloadcanory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.tar.gz
canory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.tar.bz2
canory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.zip
assets/css: Namespace MathML
Normalise. Generated math should not have inline styles
Diffstat (limited to 'themes/default/layouts')
-rw-r--r--themes/default/layouts/partials/head-css.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/head-css.html b/themes/default/layouts/partials/head-css.html
index 423db0c..6e9eb56 100644
--- a/themes/default/layouts/partials/head-css.html
+++ b/themes/default/layouts/partials/head-css.html
@@ -2,12 +2,15 @@
{{- $syntax := resources.Get "css/default-syntax.css" -}}
{{- $simple := resources.Get "css/default-simple.css" -}}
{{- $fast := resources.Get "css/default-fast.css" -}}
+{{- $math := resources.Get "css/default-mathml.css" -}}
{{- $css :=
- slice $default $syntax |
- resources.Concat "css/bundle.css" |
- resources.Minify |
- fingerprint |
+ slice
+ $default
+ $syntax
+ | resources.Concat "css/bundle.css"
+ | resources.Minify
+ | fingerprint
-}}
{{ if .Site.Params.site.production }}
@@ -17,5 +20,7 @@
<link rel="stylesheet" href="{{ $syntax.Permalink }}" />
{{ end }}
+<link rel="stylesheet" href="{{ $math.Permalink }}" />
+
<link rel="alternate stylesheet" href="{{ $simple.Permalink }}" />
<link rel="alternate stylesheet" href="{{ $fast.Permalink }}" />