aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/custom_head.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/custom_head.html')
-rw-r--r--layouts/partials/custom_head.html16
1 files changed, 4 insertions, 12 deletions
diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html
index 97c539e..4b7705a 100644
--- a/layouts/partials/custom_head.html
+++ b/layouts/partials/custom_head.html
@@ -1,12 +1,4 @@
-{{ if .Params.math }}{{ partial "katex.html" . }}{{ end }}
-
-<script>
- document.addEventListener("DOMContentLoaded", function() {
- renderMathInElement(document.body, {
- delimiters: [
- {left: "$$", right: "$$", display: true},
- {left: "$", right: "$", display: false}
- ]
- });
- });
-</script> \ No newline at end of file
+{{ range .Site.Params.custom_css -}}
+ <link rel="stylesheet" href="{{ . | absURL }}">
+{{- end }}
+{{ if .Params.math }}{{ partial "katex.html" . }}{{ end }} \ No newline at end of file