Add default link hashes

This commit is contained in:
Will Faught
2023-02-11 17:57:19 -08:00
parent 46ccb3181f
commit da394da61f
2 changed files with 4 additions and 4 deletions

View File

@@ -42,13 +42,13 @@ addEventListener("resize", paigeResize);
{{ end }}
</script>
{{ partial "paige/script.html" (dict
"integrity" ($page.Param "paige.bootstrap.script.script_integrity")
"integrity" ($page.Param "paige.bootstrap.script.script_integrity" | default "sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN")
"raw" ($page.Param "paige.bootstrap.script.raw")
"src" ($page.Param "paige.bootstrap.script.script_src" | default "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js")
) }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/script.html" (dict
"integrity" ($page.Param "paige.katex.script.script_integrity")
"integrity" ($page.Param "paige.katex.script.script_integrity" | default "sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O")
"raw" ($page.Param "paige.katex.script.raw")
"src" ($page.Param "paige.katex.script.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js")
) }}