blob: 6f6c5b04e07aad34e3f1705d57dcb1bff151f88c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{/* Resources */}}
{{- $reset := resources.Get "css/reset.css" -}}
{{- $main := resources.Get "css/main.css" -}}
{{- $styles := slice $reset $main | resources.Concat "css/bundle.css" -}}
{{/* MathJax */}}
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
<script type="text/x-mathjax-config">
document.addEventListener('DOMContentLoaded', function () {
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
});
</script>
{{/* Output */}}
{{- if eq hugo.Environment "development" -}}
<link rel="stylesheet" href="{{ $styles.Permalink | absURL }}" />
{{- else -}}
{{- $styles := $styles | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" />
{{- end -}}
|