Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mathjax.html « partials « layouts - github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 521a813efb70166b41c6cdd5a3024631665693df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ with $.Params.math }}
  <script>
    MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      }
    };
  </script>

  {{ $js := resources.Get "js/mathjax-v3.0.1-tex-mml-chtml.js" }}
  {{ $secureJS := $js | resources.Fingerprint "sha512" }}
  <script async type="text/javascript" id="MathJax-script" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ end }}