Add paigelistmath scratch variable
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
{{ if .Pages }}
|
||||
{{ if .Params.paigeshowfullpages }}
|
||||
{{ $page := . }}
|
||||
{{ $p := .Paginate .Pages }}
|
||||
{{ range $p.Pages }}
|
||||
{{ if .Params.math }}
|
||||
{{ $page.Scratch.Set "paigelistmath" true }}
|
||||
{{ end }}
|
||||
{{ partial "paige-main.html" . }}
|
||||
{{ end }}
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{{ else }}
|
||||
<script crossorigin="anonymous" defer integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{{ end }}
|
||||
{{ if or .Site.Params.math .Params.math }}
|
||||
{{ if or .Site.Params.math .Params.math (.Scratch.Get "paigelistmath") }}
|
||||
<script crossorigin="anonymous" defer integrity="sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js"></script>
|
||||
<script crossorigin="anonymous" defer integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" onload="renderMathInElement(document.body);" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js"></script>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user