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: e4ed521b8f55d16d805e048ce1aa442b0f0274b3 (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.0-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 }}