diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-12-01 14:54:37 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-12-01 14:54:47 +0100 |
commit | 5af2b92f0082f3c6b50cf3699c786ac72f891782 (patch) | |
tree | a4564ec6f6f86a4cdea11f07953fe6be889a94eb /layouts | |
parent | 995c1e695cb5d6f30f0b15fe040693aab052bbf0 (diff) |
#106, Upgrade to hugo 0.60
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/katex.html | 9 | ||||
-rw-r--r-- | layouts/shortcodes/mermaid.html | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html index 8f440ad..c3c36aa 100644 --- a/layouts/shortcodes/katex.html +++ b/layouts/shortcodes/katex.html @@ -1,12 +1,13 @@ {{ if not (.Page.Scratch.Get "katex") }} <!-- Include katext only first time --> -<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.css" integrity="sha384-BdGj8xC2eZkQaxoQ8nSLefg4AV4/AwB3Fj+8SUSo7pnKP6Eoy18liIKTPn9oBYNG" crossorigin="anonymous"> -<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.js" integrity="sha384-JiKN5O8x9Hhs/UE5cT5AAJqieYlOZbGT3CHws/y97o3ty4R7/O5poG9F3JoiOYw1" crossorigin="anonymous"></script> -<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" + onload="renderMathInElement(document.body);"></script> {{ .Page.Scratch.Set "katex" true }} {{ end }} <p class="katex{{ with .Get "class" }} {{ . }}{{ end }}"> - $$ {{ .Inner }} $$ + $$ {{- .Inner -}} $$ </p> diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html index f569bc4..1f3f18f 100644 --- a/layouts/shortcodes/mermaid.html +++ b/layouts/shortcodes/mermaid.html @@ -5,5 +5,5 @@ {{ end }} <p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}"> - {{ .Inner }} + {{- .Inner -}} </p> |