2022-02-28 00:19:32 +00:00
|
|
|
</div>
|
2022-02-27 09:27:12 +00:00
|
|
|
</main><!-- #body-inner -->
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "custom-comments.html" . }}
|
2021-09-13 17:23:38 +00:00
|
|
|
</div><!-- #body -->
|
2022-11-13 10:33:32 +00:00
|
|
|
{{- partialCached "menu.html" . .RelPermalink }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{"js/clipboard.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
2022-11-12 20:00:06 +00:00
|
|
|
{{- $outputFormat := partial "output-format.hugo" .Page }}
|
|
|
|
{{- $wantsMathJax := or (.Page.Store.Get "hasMathJax") (and (.Page.Store.Get (printf "%sIsNested" $outputFormat)) (.Page.Store.Get "nestedHasMathJax")) }}
|
2022-07-02 12:00:23 +00:00
|
|
|
{{- if $wantsMathJax }}
|
|
|
|
{{- if isset .Params "mathjaxinitialize" }}
|
|
|
|
{{- $.Scratch.Set "mathJaxInitialize" .Params.mathJaxInitialize }}
|
|
|
|
{{- else if isset .Site.Params "mathjaxinitialize" }}
|
|
|
|
{{- $.Scratch.Set "mathJaxInitialize" .Site.Params.mathJaxInitialize }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $.Scratch.Set "mathJaxInitialize" "{}" }}
|
|
|
|
{{- end }}
|
|
|
|
<script>
|
|
|
|
function useMathJax( config ){
|
2022-07-17 17:52:23 +00:00
|
|
|
if( !Object.assign ){
|
|
|
|
// We don't support MathJax for IE11 anyways, so bail out early
|
|
|
|
return;
|
|
|
|
}
|
2022-07-17 17:42:07 +00:00
|
|
|
window.MathJax = Object.assign( window.MathJax || {}, {
|
2022-07-02 12:00:23 +00:00
|
|
|
loader: {
|
|
|
|
load: ['[tex]/mhchem']
|
|
|
|
},
|
|
|
|
startup: {
|
|
|
|
elements: [
|
|
|
|
'.math'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
tex: {
|
|
|
|
inlineMath: [
|
|
|
|
['$', '$'], // allow for single dollars as we set startup.elements
|
|
|
|
['\\(', '\\)']
|
|
|
|
]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
enableMenu: false // avoid translation hassle for context menu
|
|
|
|
}
|
|
|
|
}, config );
|
|
|
|
}
|
|
|
|
useMathJax( JSON.parse({{ $.Scratch.Get "mathJaxInitialize" }}) );
|
|
|
|
</script>
|
|
|
|
{{- if isset .Params "custommathjaxurl" }}
|
|
|
|
<script id="MathJax-script" async src="{{ .Params.customMathJaxURL }}"></script>
|
|
|
|
{{- else if isset .Site.Params "custommathjaxurl" }}
|
|
|
|
<script id="MathJax-script" async src="{{ .Site.Params.customMathJaxURL }}"></script>
|
|
|
|
{{- else }}
|
|
|
|
<script id="MathJax-script" async src="{{"js/mathjax/tex-mml-chtml.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-11-12 20:00:06 +00:00
|
|
|
{{- $wantsMermaid := or (.Page.Store.Get "hasMermaid") (and (.Page.Store.Get (printf "%sIsNested" $outputFormat)) (.Page.Store.Get "nestedHasMermaid")) }}
|
2022-05-28 21:49:10 +00:00
|
|
|
{{- if $wantsMermaid }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{"js/jquery.svg.pan.zoom.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if isset .Params "custommermaidurl" }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{ .Params.customMermaidURL }}" defer></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else if isset .Site.Params "custommermaidurl" }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{ .Site.Params.customMermaidURL }}" defer></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if isset .Params "mermaidinitialize" }}
|
2022-03-16 21:40:38 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else if isset .Site.Params "mermaidinitialize" }}
|
2022-03-16 21:40:38 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else }}
|
2022-03-19 19:18:21 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" "{}" }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-11-03 19:50:35 +00:00
|
|
|
<script>
|
2022-07-17 17:42:07 +00:00
|
|
|
window.themeUseMermaid = JSON.parse({{ $.Scratch.Get "mermaidInitialize" }});
|
2022-03-27 16:42:11 +00:00
|
|
|
</script>
|
|
|
|
{{- end }}
|
2022-11-12 20:00:06 +00:00
|
|
|
{{- $wantsSwagger := or (.Page.Store.Get "hasSwagger") (and (.Page.Store.Get (printf "%sIsNested" $outputFormat)) (.Page.Store.Get "nestedHasSwagger")) }}
|
2022-05-28 21:49:10 +00:00
|
|
|
{{- if $wantsSwagger }}
|
2022-03-27 16:42:11 +00:00
|
|
|
{{- if isset .Params "customswaggerurl" }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{ .Params.customSwaggerURL }}" defer></script>
|
2022-03-27 16:42:11 +00:00
|
|
|
{{- else if isset .Site.Params "customswaggerurl" }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{ .Site.Params.customSwaggerURL }}" defer></script>
|
2022-03-27 16:42:11 +00:00
|
|
|
{{- else }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{ "js/rapidoc-min.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
2022-03-27 16:42:11 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if isset .Params "swaggerinitialize" }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }}
|
|
|
|
{{- else if isset .Site.Params "swaggerinitialize" }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" .Site.Params.swaggerInitialize }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" "{}" }}
|
|
|
|
{{- end }}
|
|
|
|
<script>
|
2022-07-17 17:42:07 +00:00
|
|
|
window.themeUseSwagger = JSON.parse({{ $.Scratch.Get "swaggerInitialize" }});
|
2021-09-11 22:40:03 +00:00
|
|
|
</script>
|
|
|
|
{{- end }}
|
2022-07-07 22:10:17 +00:00
|
|
|
<script src="{{"js/theme.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "custom-footer.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</body>
|
|
|
|
</html>
|