Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Aguiar <rmaguiar@tuta.io>2021-11-02 17:48:25 +0300
committerRaphael Aguiar <rmaguiar@tuta.io>2021-11-02 17:48:25 +0300
commitadfbfc47fffbdf00044ec2482a82177f27540ff3 (patch)
treecb4baee52214920299c6fe8c8917b36fb3256a4f /layouts
parent293d81d2247c7dcd009c23bed12462c9f9d8e3e5 (diff)
Bump KaTeX from 0.13.11 to 0.15.1 and minor changes
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/katex-font-preload.html8
-rw-r--r--layouts/partials/katex.html12
-rw-r--r--layouts/partials/processed-content.html14
3 files changed, 24 insertions, 10 deletions
diff --git a/layouts/partials/katex-font-preload.html b/layouts/partials/katex-font-preload.html
index 32f734d..9587396 100644
--- a/layouts/partials/katex-font-preload.html
+++ b/layouts/partials/katex-font-preload.html
@@ -4,7 +4,7 @@
Adjust as necessary
-->
-<link rel="preload" href="/libs/katex@0.13.11/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
-<link rel="preload" href="/libs/katex@0.13.11/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
-<link rel="preload" href="/libs/katex@0.13.11/dist/fonts/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
-<link rel="preload" href="/libs/katex@0.13.11/dist/fonts/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
+<link rel="preload" href="/libs/katex@0.15.1/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
+<link rel="preload" href="/libs/katex@0.15.1/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
+<link rel="preload" href="/libs/katex@0.15.1/dist/fonts/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
+<link rel="preload" href="/libs/katex@0.15.1/dist/fonts/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
diff --git a/layouts/partials/katex.html b/layouts/partials/katex.html
index 52dd3fb..fbaeb39 100644
--- a/layouts/partials/katex.html
+++ b/layouts/partials/katex.html
@@ -1,15 +1,15 @@
<!-- KaTeX -->
-{{ $katexCSS := resources.Get "libs/katex@0.13.11/dist/katex.css" | minify | fingerprint }}
+{{ $katexCSS := resources.Get "libs/katex@0.15.1/dist/katex.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $katexCSS.Permalink }}" integrity="{{ $katexCSS.Data.Integrity }}" crossorigin="anonymous">
-{{ $katexJS := resources.Get "libs/katex@0.13.11/dist/katex.js" | minify | fingerprint }}
+{{ $katexJS := resources.Get "libs/katex@0.15.1/dist/katex.js" | minify | fingerprint }}
<script defer src="{{ $katexJS.Permalink }}" integrity="{{ $katexJS.Data.Integrity }}" crossorigin="anonymous"></script>
<!-- mhchem extension -->
{{ if or (in .Params.katexExtensions "mhchem") (in .Site.Params.katexExtensions "mhchem") }}
- {{ $mhchem := resources.Get "libs/katex@0.13.11/dist/contrib/mhchem.js" | minify | fingerprint }}
+ {{ $mhchem := resources.Get "libs/katex@0.15.1/dist/contrib/mhchem.js" | minify | fingerprint }}
<script defer src="{{ $mhchem.Permalink }}" integrity="{{ $mhchem.Data.Integrity }}" crossorigin="anonymous"></script>
{{ end }}
@@ -18,10 +18,10 @@
<!-- copy-tex extension -->
{{ if or (in .Params.katexExtensions "copy-tex") (in .Site.Params.katexExtensions "copy-tex") }}
- {{ $copyTexCSS := resources.Get "libs/katex@0.13.11/dist/contrib/copy-tex.css" | minify | fingerprint }}
+ {{ $copyTexCSS := resources.Get "libs/katex@0.15.1/dist/contrib/copy-tex.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $copyTexCSS.Permalink }}" integrity="{{ $copyTexCSS.Data.Integrity }}" crossorigin="anonymous">
- {{ $copyTexJS := resources.Get "libs/katex@0.13.11/dist/contrib/copy-tex.js" | minify | fingerprint }}
+ {{ $copyTexJS := resources.Get "libs/katex@0.15.1/dist/contrib/copy-tex.js" | minify | fingerprint }}
<script defer src="{{ $copyTexJS.Permalink }}" integrity="{{ $copyTexJS.Data.Integrity }}" crossorigin="anonymous"></script>
{{ end }}
@@ -36,7 +36,7 @@
The workaround used here is to inject "tabindex=0" after
the auto-render extension work is done
-->
-{{ $autoRender := resources.Get "libs/katex@0.13.11/dist/contrib/auto-render.js" }}
+{{ $autoRender := resources.Get "libs/katex@0.15.1/dist/contrib/auto-render.js" }}
{{ $katexAutoRenderOptions := resources.Get "js/katex-auto-render-options.js" }}
{{ $katexPostRender := resources.Get "js/katex-post-render.js" | resources.ExecuteAsTemplate "js/katex-post-render.js" . }}
diff --git a/layouts/partials/processed-content.html b/layouts/partials/processed-content.html
index 3a98385..21ce5b0 100644
--- a/layouts/partials/processed-content.html
+++ b/layouts/partials/processed-content.html
@@ -16,6 +16,20 @@
render hooks were available.)~~
I digress.
+
+ NOTE
+ A while ago I had to update this hack, cuz Hugo 0.86.0 has
+ "tabindex=0" as default. It should still be compatible with
+ 0.73.0 and above.
+
+ Reference:
+ https://github.com/gohugoio/hugo/pull/8568
+
+ So... this is now a hack to a hack.
+
+ TODO
+ Also, I need to fix the "additional" tabindexes in code fences
+ with line numbers (.lntd > .chroma).
-->
<!-- i18n -->