diff options
author | Raphael Aguiar <rmaguiar@tuta.io> | 2022-03-16 19:05:34 +0300 |
---|---|---|
committer | Raphael Aguiar <rmaguiar@tuta.io> | 2022-03-16 19:05:34 +0300 |
commit | b767c4e39893384d6821e357ba6d4c901a5eb9b7 (patch) | |
tree | d82c75e66f0b019ee10c942c848988cc16d282ed | |
parent | b7927278b9d88d8f81ce385b74fb53f8048720aa (diff) |
Bundle SVGs and a bunch of minor changes and fixes
* Bundle SVGs
* Bump KaTeX from 0.15.2 to 0.15.3
* Use ESBuild conditionally (Hugo 0.74+)
* A bunch of minor changes and fixes
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | archetypes/katex.md | 2 | ||||
-rw-r--r-- | assets/js/katex-auto-render-options.js | 4 | ||||
-rw-r--r-- | assets/js/katex-post-render.js | 2 | ||||
-rw-r--r-- | assets/js/main.js | 229 | ||||
-rw-r--r-- | assets/js/search.js | 5 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/contrib/auto-render.js (renamed from assets/libs/katex@0.15.2/dist/contrib/auto-render.js) | 0 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/contrib/copy-tex.css (renamed from assets/libs/katex@0.15.2/dist/contrib/copy-tex.css) | 1 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/contrib/copy-tex.js (renamed from assets/libs/katex@0.15.2/dist/contrib/copy-tex.js) | 0 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/contrib/mhchem.js (renamed from assets/libs/katex@0.15.2/dist/contrib/mhchem.js) | 0 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/katex.css (renamed from assets/libs/katex@0.15.2/dist/katex.css) | 2 | ||||
-rw-r--r-- | assets/libs/katex@0.15.3/dist/katex.js (renamed from assets/libs/katex@0.15.2/dist/katex.js) | 8 | ||||
-rw-r--r-- | assets/scss/base/mixins.scss | 8 | ||||
-rw-r--r-- | assets/scss/main.scss | 135 | ||||
-rw-r--r-- | assets/svg/bundle.svg | 46 | ||||
-rw-r--r-- | i18n/en.toml | 3 | ||||
-rw-r--r-- | i18n/pt.toml | 3 | ||||
-rw-r--r-- | images/screenshot.png | bin | 74308 -> 76243 bytes | |||
-rw-r--r-- | images/screenshot2.png | bin | 73390 -> 78276 bytes | |||
-rw-r--r-- | images/tn.png | bin | 48565 -> 42203 bytes | |||
-rw-r--r-- | layouts/_default/_markup/render-heading.html | 8 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 39 | ||||
-rw-r--r-- | layouts/_default/list.html | 10 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/index.html | 6 | ||||
-rw-r--r-- | layouts/partials/content-svg.html | 10 | ||||
-rw-r--r-- | layouts/partials/footer-opt.html | 11 | ||||
-rw-r--r-- | layouts/partials/head-style.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 10 | ||||
-rw-r--r-- | layouts/partials/katex-font-preload.html | 2 | ||||
-rw-r--r-- | layouts/partials/katex.html | 3 | ||||
-rw-r--r-- | layouts/partials/pagination.html | 13 | ||||
-rw-r--r-- | layouts/partials/processed-content.html | 5 | ||||
-rw-r--r-- | layouts/partials/search-form.html | 6 | ||||
-rw-r--r-- | layouts/shortcodes/gifoid.html | 9 | ||||
-rw-r--r-- | layouts/shortcodes/social.html | 11 | ||||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.ttf) | bin | 63632 -> 63632 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff) | bin | 33516 -> 33516 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff2) | bin | 28076 -> 28076 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.ttf) | bin | 12368 -> 12368 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff) | bin | 7716 -> 7716 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff2) | bin | 6912 -> 6912 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.ttf) | bin | 12344 -> 12344 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff) | bin | 7656 -> 7656 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff2) | bin | 6908 -> 6908 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.ttf) | bin | 19584 -> 19584 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff) | bin | 13296 -> 13296 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff2) | bin | 11348 -> 11348 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.ttf) | bin | 19572 -> 19572 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff) | bin | 13208 -> 13208 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff2) | bin | 11316 -> 11316 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.ttf) | bin | 51336 -> 51336 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff) | bin | 29912 -> 29912 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff2) | bin | 25324 -> 25324 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.ttf) | bin | 32968 -> 32968 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff) | bin | 19412 -> 19412 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff2) | bin | 16780 -> 16780 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.ttf) | bin | 33580 -> 33580 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff) | bin | 19676 -> 19676 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff2) | bin | 16988 -> 16988 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.ttf) | bin | 53580 -> 53580 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff) | bin | 30772 -> 30772 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff2) | bin | 26272 -> 26272 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.ttf) | bin | 31196 -> 31196 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff) | bin | 18668 -> 18668 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff2) | bin | 16400 -> 16400 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.ttf) | bin | 31308 -> 31308 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff) | bin | 18748 -> 18748 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff2) | bin | 16440 -> 16440 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.ttf) | bin | 24504 -> 24504 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff) | bin | 14408 -> 14408 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff2) | bin | 12216 -> 12216 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.ttf) | bin | 22364 -> 22364 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff) | bin | 14112 -> 14112 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff2) | bin | 12028 -> 12028 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.ttf) | bin | 19436 -> 19436 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff) | bin | 12316 -> 12316 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff2) | bin | 10344 -> 10344 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.ttf) | bin | 16648 -> 16648 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff) | bin | 10588 -> 10588 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff2) | bin | 9644 -> 9644 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.ttf) | bin | 12228 -> 12228 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff) | bin | 6496 -> 6496 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff2) | bin | 5468 -> 5468 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.ttf) | bin | 11508 -> 11508 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff) | bin | 6188 -> 6188 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff2) | bin | 5208 -> 5208 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.ttf) | bin | 7588 -> 7588 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff) | bin | 4420 -> 4420 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff2) | bin | 3624 -> 3624 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.ttf) | bin | 10364 -> 10364 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff) | bin | 5980 -> 5980 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff2) | bin | 4928 -> 4928 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.ttf (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.ttf) | bin | 27556 -> 27556 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff) | bin | 16028 -> 16028 bytes | |||
-rw-r--r-- | static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff2 (renamed from static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff2) | bin | 13568 -> 13568 bytes |
97 files changed, 328 insertions, 274 deletions
@@ -2,3 +2,4 @@ public resources *.bak *.kate-swp +.hugo_build.lock @@ -340,7 +340,7 @@ copyright = "Copyright © 2008–2021, Steve Francia and the Hugo Authors; All r # Can be used as a workaround for Chrome on Linux # (Issue 998903: Dark Gtk theme does not affect prefers-color-scheme media query) # The default is false - ignoreSystemSettings = true + ignoreSystemSettings = false # Use an icon or text for footnote return links # The default is false @@ -349,7 +349,7 @@ copyright = "Copyright © 2008–2021, Steve Francia and the Hugo Authors; All r # For the social shortcode # Use flexbox (with flex-grow) or grid (equal width) # The default is false - socialIsFlex = true + socialIsFlex = false # Keep anchor links hidden until it's focused/hovered # They will always be visible in mobile devices, regardless the option diff --git a/archetypes/katex.md b/archetypes/katex.md index aa4e686..adab80c 100644 --- a/archetypes/katex.md +++ b/archetypes/katex.md @@ -3,6 +3,6 @@ title: "{{ replace .TranslationBaseName "-" " " | title }}" description: "" date: {{ .Date }} katex: true -katexExtensions: [ mchem, copy-tex ] +katexExtensions: [ mhchem, copy-tex ] draft: true ---
\ No newline at end of file diff --git a/assets/js/katex-auto-render-options.js b/assets/js/katex-auto-render-options.js index ace6403..0cf5914 100644 --- a/assets/js/katex-auto-render-options.js +++ b/assets/js/katex-auto-render-options.js @@ -5,8 +5,8 @@ renderMathInElement(document.body, { delimiters: [ { left: '$$', right: '$$', display: true }, + { left: '\\[', right: '\\]', display: true }, { left: '$', right: '$', display: false }, - { left: '\\(', right: '\\)', display: false }, - { left: '\\[', right: '\\]', display: true } + { left: '\\(', right: '\\)', display: false } ] }); diff --git a/assets/js/katex-post-render.js b/assets/js/katex-post-render.js index cfd10f1..8356345 100644 --- a/assets/js/katex-post-render.js +++ b/assets/js/katex-post-render.js @@ -9,7 +9,7 @@ function addTabIndex() { const katexBlocks = getAll('span.katex-display'); - katexBlocks.forEach(function (el) { + katexBlocks.forEach(function(el) { el.tabIndex = 0; }); } diff --git a/assets/js/main.js b/assets/js/main.js index dcdeb3b..865fd6f 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,8 +1,8 @@ 'use strict'; // Get default accent colors -{{ $darkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} -{{ $lightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} +{{ $defaultDarkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} +{{ $defaultLightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} // Get CSS transition {{ $changeTransition := .Site.Params.Style.changeTransition | default .Site.Data.default.style.changeTransition }} @@ -12,17 +12,8 @@ // Based on: https://gist.github.com/regpaq/04c67e8aceecbf0fd819945835412d1f // ================================================= -{{ if not .Site.Params.Style.ignoreSystemSettings }} - // Use prefers-color-scheme media query to detect OS dark/light mode setting - const prefersDark = window.matchMedia('(prefers-color-scheme: dark)'); - const prefersLight = window.matchMedia('(prefers-color-scheme: light)'); -{{ end }} - const rootElement = document.documentElement; -const rootStyle = rootElement.style; -const metaThemeColor = document.querySelector('meta[name=theme-color]'); - // Set the dark mode function setDark() { rootElement.setAttribute('data-mode', 'dark'); @@ -33,61 +24,103 @@ function setLight() { rootElement.setAttribute('data-mode', 'light'); } -// Initialization triggers dark/light mode based on prior preference, then OS setting -// If both are unavailable, the default 'data-mode' attribute will be used instead -// And yes, I know 'true' here is a string -if(localStorage.getItem('isDark') == 'true') { +/* + * Initialization triggers dark/light mode based on 3 things + * The priority follows: + * + * 1. Local preference (localStorage) + * 2. System settings (prefers-color-scheme) + * 3. HTML data-* attribute (data-mode) + */ + +const localMode = localStorage.getItem('mode'); + +{{ if not .Site.Params.Style.ignoreSystemSettings }} + const prefersDark = window.matchMedia('(prefers-color-scheme: dark)'); + const prefersLight = window.matchMedia('(prefers-color-scheme: light)'); +{{ end }} + +if (localMode === 'dark') { setDark(); -} else if(localStorage.getItem('isDark') == 'false') { +} else if (localMode === 'light') { setLight(); {{ if not .Site.Params.Style.ignoreSystemSettings }} - } else if(prefersDark.matches) { + } else if (prefersDark.matches) { setDark(); - } else if(prefersLight.matches) { + } else if (prefersLight.matches) { setLight(); {{ end }} } -//console.log('Dark/light mode loaded.'); + +{{ if .Site.IsServer }} + + function capitalize(string) { + return string.charAt(0).toUpperCase() + string.slice(1); + } + + const currentModeTitle = capitalize(rootElement.getAttribute('data-mode')); + + if (localMode !== null) { + console.log(currentModeTitle + + ' mode loaded via local preference (localStorage).'); + } else if (typeof prefersDark !== 'undefined') { + console.log(currentModeTitle + + ' mode loaded via system settings (prefers-color-scheme).'); + } else { + console.log(currentModeTitle + + ' mode loaded via HTML data-* attribute (data-mode).'); + } + +{{ end }} -// TODO -// Maybe I should rethink this... function getAccent() { const currentMode = rootElement.getAttribute('data-mode'); + + const localDarkAccent = localStorage.getItem('darkAccent'); + const localLightAccent = localStorage.getItem('lightAccent'); + let currentAccent; if (currentMode === 'dark') { - if (localStorage.getItem('darkAccent') === null) { - //console.log("The user never used the palette while in the 'dark' mode."); - //console.log("As the mode is 'dark', loading the 'default accent color' for the dark mode."); - - currentAccent = "{{ $darkAccent }}"; + if (localDarkAccent === null) { + currentAccent = '{{ $defaultDarkAccent }}'; } else { - //console.log("The user previously used the palette while in the 'dark' mode."); - //console.log("As the mode is 'dark', loading the 'dark accent color' chosen by the user."); - - currentAccent = localStorage.getItem('darkAccent'); + currentAccent = localDarkAccent; } - } else if (currentMode === 'light') { + + } else { - if (localStorage.getItem('lightAccent') === null) { - //console.log("The user never used the palette while in the 'light' mode."); - //console.log("As the mode is 'light', loading the 'default accent color' for the light mode."); - - currentAccent = "{{ $lightAccent }}"; + if (localLightAccent === null) { + currentAccent = '{{ $defaultLightAccent }}'; } else { - //console.log("The user previously used the palette while in the 'light' mode."); - //console.log("As the mode is 'light', loading the 'light accent color' chosen by the user."); - - currentAccent = localStorage.getItem('lightAccent'); + currentAccent = localLightAccent; } + } + {{ if .Site.IsServer }} + + if ( + (currentMode === 'dark') && + (localStorage.getItem('darkAccent') !== null) || + (currentMode === 'light') && + (localStorage.getItem('lightAccent') !== null) + ) { + console.log('Custom accent color defined. Loading custom ' + + currentMode + ' accent (' + currentAccent + ').'); + } else { + console.log('Custom accent color NOT defined. Loading default ' + + currentMode + ' accent (' + currentAccent + ').'); + } + + {{ end }} + return currentAccent; } @@ -95,117 +128,127 @@ const activeAccent = getAccent(); // Set the active accent color for these right after setting dark/light mode // Should mitigate any flashing/flickering +const rootStyle = rootElement.style; + rootStyle.setProperty('--accent', activeAccent); + // Also meta-theme cuz, why not +const metaThemeColor = document.querySelector('meta[name=theme-color]'); + metaThemeColor.setAttribute('content', activeAccent); -document.addEventListener('DOMContentLoaded', function () { - // Accent color palette (HTML color picker) - const palette = document.querySelector('footer input'); +document.addEventListener('DOMContentLoaded', function() { + + const colorPicker = document.querySelector('footer input'); + + function updateAccent() { + const activeAccent = getAccent(); + + rootStyle.setProperty('--accent', activeAccent); + colorPicker.value = activeAccent; + metaThemeColor.setAttribute('content', activeAccent); + } - palette.onchange = function () { + colorPicker.onchange = function() { - // User's pick - const pick = palette.value; + const selectedAccent = colorPicker.value; - rootStyle.setProperty('--accent', pick); + rootStyle.setProperty('--accent', selectedAccent); if (rootElement.getAttribute('data-mode') === 'dark') { - localStorage.setItem('darkAccent', pick); + localStorage.setItem('darkAccent', selectedAccent); } else { - localStorage.setItem('lightAccent', pick); + localStorage.setItem('lightAccent', selectedAccent); } updateAccent(); } - // Update the color picker with the active accent color - palette.value = activeAccent; + // Update the color picker with the active accent color + colorPicker.value = activeAccent; // Smooth transition, only when changing modes (and not loading pages) function smoothTransition() { - document.body.style.transition - = document.querySelector('header').style.transition - = document.querySelector('footer').style.transition - = '{{ printf "background-color %[1]s, color %[1]s" $changeTransition }}'; + document.body.style.transition = + document.querySelector('header').style.transition = + document.querySelector('footer').style.transition = + '{{ printf "background-color %[1]s, color %[1]s" $changeTransition }}'; } - // Switch mode - function userModeChange() { + // Change mode via localStorage + function localModeChange() { smoothTransition(); - if (rootElement.getAttribute('data-mode') == 'dark') { - setLight(); - localStorage.setItem('isDark', 'false'); - - //console.log("Mode changed to 'light' by the user."); - } else { + if (rootElement.getAttribute('data-mode') === 'light') { setDark(); - localStorage.setItem('isDark', 'true'); - - //console.log("Mode changed to 'dark' by the user."); + localStorage.setItem('mode', 'dark'); + } else { + setLight(); + localStorage.setItem('mode', 'light'); } + {{ if .Site.IsServer }} + console.log('Local: ' + + capitalize(localStorage.getItem('mode') + ' mode set.')); + {{ end }} + updateAccent(); } - // TEST - // Keyboard shortcut for mode change, here for testing purposes only - // CTRL + ALT + M {{ if .Site.IsServer }} + + // TEST + // Keyboard shortcut for mode change, here for testing purposes only + // CTRL + ALT + M document.addEventListener('keydown', (event) => { const e = event || window.event; if (e.keyCode === 77 && e.ctrlKey && e.altKey) { - userModeChange(); + localModeChange(); return; } }, false); + {{ end }} {{ if not .Site.Params.Style.ignoreSystemSettings }} - // Runs when OS changes dark/light mode. Changes only if you were on default - // color state (light on light mode, dark on dark mode). - function OSModeChange() { + // Change mode via system settings + function systemModeChange() { smoothTransition(); if (prefersDark.matches) { setDark(); - localStorage.setItem('isDark', 'false'); - - //console.log("Mode changed to 'light' in OS level."); - } else if (prefersLight.matches) { + } else { setLight(); - localStorage.setItem('isDark', 'true'); - - //console.log("Mode changed to 'dark' in OS level."); } + {{ if .Site.IsServer }} + console.log('System: ' + + capitalize(rootElement.getAttribute('data-mode')) + ' mode set.'); + {{ end }} + updateAccent(); + + // System settings do not require localStorage + if (localMode !== null) { + localStorage.removeItem('mode'); + } + } - // Listeners for when you change OS setting for dark/light mode - prefersDark.addListener(OSModeChange); - prefersLight.addListener(OSModeChange); + // System settings listener + prefersDark.addEventListener('change', systemModeChange); {{ end }} - - function updateAccent() { - const activeAccent = getAccent(); - rootStyle.setProperty('--accent', activeAccent); - palette.value = activeAccent; - metaThemeColor.setAttribute('content', activeAccent); - } - - // Mode change button + // Mode change button listener document.querySelector('footer button') - .addEventListener('click', userModeChange); + .addEventListener('click', localModeChange); }); diff --git a/assets/js/search.js b/assets/js/search.js index 81ff8e8..44a22d8 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -53,6 +53,8 @@ if (searchQuery) { .value = searchQuery; executeSearch(searchQuery); + report('{{ T "searchProcessing" }}'); + } else { report('{{ T "searchAwaitingSearch" }}'); } @@ -74,12 +76,13 @@ function executeSearch(searchQuery) { return fuse.search(searchQuery); }) .then((output) => { + searchInfo.firstElementChild.remove(); report('{{ T "searchResultsFor" }}: ' + searchQuery); const matches = output.length; if (matches > 0) { - if (matches == 1) { + if (matches === 1) { report('{{ T "searchOnePageFound" }}.'); } else if (1 < matches && matches < limit + 1) { report(matches + ' {{ T "searchPagesFound" }}.'); diff --git a/assets/libs/katex@0.15.2/dist/contrib/auto-render.js b/assets/libs/katex@0.15.3/dist/contrib/auto-render.js index 6980cdd..6980cdd 100644 --- a/assets/libs/katex@0.15.2/dist/contrib/auto-render.js +++ b/assets/libs/katex@0.15.3/dist/contrib/auto-render.js diff --git a/assets/libs/katex@0.15.2/dist/contrib/copy-tex.css b/assets/libs/katex@0.15.3/dist/contrib/copy-tex.css index f925578..6999c63 100644 --- a/assets/libs/katex@0.15.2/dist/contrib/copy-tex.css +++ b/assets/libs/katex@0.15.3/dist/contrib/copy-tex.css @@ -8,7 +8,6 @@ .katex-display { -webkit-user-select: all; -moz-user-select: all; - -ms-user-select: all; user-select: all; } diff --git a/assets/libs/katex@0.15.2/dist/contrib/copy-tex.js b/assets/libs/katex@0.15.3/dist/contrib/copy-tex.js index bf54df2..bf54df2 100644 --- a/assets/libs/katex@0.15.2/dist/contrib/copy-tex.js +++ b/assets/libs/katex@0.15.3/dist/contrib/copy-tex.js diff --git a/assets/libs/katex@0.15.2/dist/contrib/mhchem.js b/assets/libs/katex@0.15.3/dist/contrib/mhchem.js index c557b4e..c557b4e 100644 --- a/assets/libs/katex@0.15.2/dist/contrib/mhchem.js +++ b/assets/libs/katex@0.15.3/dist/contrib/mhchem.js diff --git a/assets/libs/katex@0.15.2/dist/katex.css b/assets/libs/katex@0.15.3/dist/katex.css index 9c3ffae..f6bd80c 100644 --- a/assets/libs/katex@0.15.2/dist/katex.css +++ b/assets/libs/katex@0.15.3/dist/katex.css @@ -130,7 +130,7 @@ border-color: currentColor; } .katex .katex-version::after { - content: "0.15.2"; + content: "0.15.3"; } .katex .katex-mathml { /* Accessibility hack to only show to screen readers diff --git a/assets/libs/katex@0.15.2/dist/katex.js b/assets/libs/katex@0.15.3/dist/katex.js index ab4956b..9ce69ca 100644 --- a/assets/libs/katex@0.15.2/dist/katex.js +++ b/assets/libs/katex@0.15.3/dist/katex.js @@ -4506,7 +4506,7 @@ defineSymbol(math, main, bin, "\u2293", "\\sqcap", true); defineSymbol(math, main, bin, "\u2217", "\\ast"); defineSymbol(math, main, bin, "\u2294", "\\sqcup", true); defineSymbol(math, main, bin, "\u25EF", "\\bigcirc", true); -defineSymbol(math, main, bin, "\u2219", "\\bullet"); +defineSymbol(math, main, bin, "\u2219", "\\bullet", true); defineSymbol(math, main, bin, "\u2021", "\\ddagger"); defineSymbol(math, main, bin, "\u2240", "\\wr", true); defineSymbol(math, main, bin, "\u2A3F", "\\amalg"); @@ -4865,13 +4865,13 @@ defineSymbol(math, main, bin, "\u2217", "*", true); defineSymbol(math, main, bin, "+", "+"); defineSymbol(math, main, bin, "\u2212", "-", true); defineSymbol(math, main, bin, "\u22C5", "\\cdot", true); -defineSymbol(math, main, bin, "\u2218", "\\circ"); +defineSymbol(math, main, bin, "\u2218", "\\circ", true); defineSymbol(math, main, bin, "\xF7", "\\div", true); defineSymbol(math, main, bin, "\xB1", "\\pm", true); defineSymbol(math, main, bin, "\xD7", "\\times", true); defineSymbol(math, main, bin, "\u2229", "\\cap", true); defineSymbol(math, main, bin, "\u222A", "\\cup", true); -defineSymbol(math, main, bin, "\u2216", "\\setminus"); +defineSymbol(math, main, bin, "\u2216", "\\setminus", true); defineSymbol(math, main, bin, "\u2227", "\\land"); defineSymbol(math, main, bin, "\u2228", "\\lor"); defineSymbol(math, main, bin, "\u2227", "\\wedge", true); @@ -18351,7 +18351,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) { /** * Current KaTeX version */ - version: "0.15.2", + version: "0.15.3", /** * Renders the given LaTeX into an HTML+MathML combination, and adds diff --git a/assets/scss/base/mixins.scss b/assets/scss/base/mixins.scss index 74bd4db..639a919 100644 --- a/assets/scss/base/mixins.scss +++ b/assets/scss/base/mixins.scss @@ -2,7 +2,7 @@ @mixin button-like { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), - inset 0 -3px 0 rgba(0,0,0,.3); + inset 0 -1px 0 rgba(0,0,0,.3); } // Same width and height @@ -30,9 +30,3 @@ @content; } } - -@mixin respond-below($breakpoint) { - @media (max-width: $breakpoint) { - @content; - } -} diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 375dce5..5d53496 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -11,12 +11,8 @@ $change-transition: {{ .Site.Params.Style.changeTransition | default .Site.Data. -// Default font size
-:root {
- font-size: $font-size;
-}
-
html {
+ font-size: $font-size;
scroll-behavior: smooth;
// Dark mode
@@ -40,7 +36,7 @@ html { --rlpress: #{$light-letterpress};
// Lazy way to deter images that can be too bright
- img {
+ img:not([src$='.svg']) {
filter: $img-filter;
}
@@ -87,6 +83,19 @@ html { {{ end }}
}
+
+ // RESPONSIVENESS
+
+ // Margin for blockquote
+ --blk-mg: 1.05rem .75rem;
+
+ // Padding for highlight
+ --hl-pad: 15px 18px;
+
+ --il-pad: 0 12px;
+
+ // Padding for highlight with line numbers
+ --lnhl-pad: 3px 18px;
}
@@ -156,7 +165,6 @@ body { font-size: .75rem;
font-weight: $body-bold-weight;
- text-transform: uppercase;
}
}
}
@@ -283,10 +291,12 @@ hr { }
-
article > header {
+ margin: 0 0 2rem; // White space
+
h1 {
line-height: 3rem;
+ margin: 9px 0; // White space
}
img {
@@ -296,6 +306,8 @@ article > header { p {
font-size: .9rem;
font-style: italic;
+
+ margin: 0; // White space
}
}
@@ -350,18 +362,6 @@ code { // WHITE SPACE
-article > header {
- margin: 0 0 2rem;
-
- h1 {
- margin: 9px 0;
- }
-
- p {
- margin: 0;
- }
-}
-
article {
h2,
h3 {
@@ -644,9 +644,9 @@ article > pre, &:focus {
outline-color: var(--accent);
}
-
- // TEST
+
@extend %webkit-scrollbar;
+ @extend %moz-scrollbar;
}
@@ -784,12 +784,13 @@ article > header { color: var(--dtl);
display: flex;
+ flex-direction: column-reverse;
+
margin: 15px auto;
padding: 15px 30px 18px;
text-decoration: none;
- align-items: center;
word-break: break-word;
p {
@@ -810,20 +811,9 @@ article > header { font-size: .85rem;
- margin-left: 1.8rem;
- padding: 0 9px 2px;
- }
- }
-}
-
-// Not sure if I like this
-@include respond-below($mobile-breakpoint) {
- .posts a {
- flex-direction: column-reverse;
- align-items: unset;
-
- time {
margin: .3rem 0;
+ //margin-left: 1.8rem;
+ padding: 0 9px 2px;
}
}
}
@@ -855,7 +845,7 @@ video { img {
display: block;
- max-width: 100%;
+ max-width: calc(100% - 2px);
max-height: $box-max-height;
outline: 3px solid transparent;
@@ -869,14 +859,14 @@ img { border: 1px solid var(--fg);
object-fit: cover;
- width: 100%;
+ width: calc(100% - 2px);
}
}
article p > img {
display: block;
margin: 2rem auto;
- max-width: 100%;
+ max-width: calc(100% - 2px);
}
figure {
@@ -997,7 +987,7 @@ video { border-radius: 0 0 $border-radius $border-radius;
- box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.3);
padding: 6px 15px 15px 9px;
@@ -1483,20 +1473,6 @@ article { margin: 90px auto 120px;
}
-
-html {
- // Margin for blockquote
- --blk-mg: 1.05rem .75rem;
-
- // Padding for highlight
- --hl-pad: 15px 18px;
-
- --il-pad: 0 12px;
-
- // Padding for highlight with line numbers
- --lnhl-pad: 3px 18px;
-}
-
// If not in mobile
@include respond-above($mobile-breakpoint) {
html {
@@ -1506,28 +1482,39 @@ html { --lnhl-pad: 6px 24px;
}
- .footnotes {
- padding: 1rem .5rem 1.8rem;
- }
-}
-
-
-{{ if .Site.Params.Style.hideAnchors }}
- a.anchor:not(:focus) {
- opacity: 0;
+ // Not sure if I like this
+ .posts a {
+ flex-direction: unset;
+
+ align-items: center;
+
+ time {
+ margin: 0 0 0 1.8rem;
+ }
}
- %visible {
- opacity: 1;
+ .footnotes {
+ padding: 1rem .5rem 1.8rem;
}
- @for $i from 2 through 6 {
- h#{$i} > a:focus + a.anchor,
- h#{$i}:hover > a.anchor {
- @extend %visible;
+ {{ if .Site.Params.Style.hideAnchors }}
+ a.anchor:not(:focus) {
+ opacity: 0;
}
- }
-{{ end }}
+
+ %visible {
+ opacity: 1;
+ }
+
+ @for $i from 2 through 6 {
+ h#{$i} > a:focus + a.anchor,
+ h#{$i}:hover > a.anchor {
+ @extend %visible;
+ }
+ }
+ {{ end }}
+}
+
{{ if .Site.Params.hasNoscriptNotice }}
.noscript {
@@ -1537,7 +1524,6 @@ html { -// TEST
// Non-standard
%webkit-scrollbar {
&::-webkit-scrollbar {
@@ -1570,6 +1556,11 @@ html { }
}
+// Non-standard
+%moz-scrollbar {
+ scrollbar-color: var(--accent) var(--input-bg);
+}
+
// "Honeypot"
input[name="_gotcha"] {
diff --git a/assets/svg/bundle.svg b/assets/svg/bundle.svg new file mode 100644 index 0000000..f23833a --- /dev/null +++ b/assets/svg/bundle.svg @@ -0,0 +1,46 @@ +<svg xmlns="http://www.w3.org/2000/svg"> + + <symbol viewBox="0 0 512 512" id="adjust"> + <path d="M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"/> + </symbol> + + <symbol viewBox="0 0 448 512" id="angle-double-right"> + <path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"/> + </symbol> + + <symbol viewBox="0 0 256 512" id="angle-right"> + <path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/> + </symbol> + + {{ if .Site.Params.Style.hasIconAsFootnoteReturnLink }} + <symbol viewBox="0 0 320 512" id="caret-down"> + <path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/> + </symbol> + {{ end }} + + <symbol viewBox="0 0 448 512" id="hashtag"> + <path d="M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"/> + </symbol> + + <symbol viewBox="0 0 512 512" id="search"> + <path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/> + </symbol> + + <!-- Social stuff --> + {{ if $.Site.Params.Social }} + <!-- Get info about social platform and icon id from "social.json" --> + {{ range .Site.Data.social }} + {{ if and (or (index $.Site.Params.Social.Centralized .entry) (index $.Site.Params.Social.Decentralized .entry)) .icon }} + {{ $iconId := .icon.id }} + {{ $svgEssential := `(?:<svg (?:.*?)(viewBox="(?:.*?)")(?:.*?)>((?:.|\n)+?)(?:</svg>))` }} + {{ $asSymbol := printf `<symbol ${1} id="%s">${2}</symbol>` $iconId }} + + <!-- Get the required SVG file and insert here as a symbol --> + {{ with (resources.Get (printf "svg/%s.svg" $iconId)) }} + {{ .Content | replaceRE $svgEssential $asSymbol | safeHTML }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + +</svg>
\ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index 121b739..3e787a1 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -138,6 +138,9 @@ other = "One page found" [searchPagesFound] other = "pages found" +[searchProcessing] +other = "Processing search..." + [searchAwaitingSearch] other = "Awaiting search." diff --git a/i18n/pt.toml b/i18n/pt.toml index 403dce6..ef22c29 100644 --- a/i18n/pt.toml +++ b/i18n/pt.toml @@ -138,6 +138,9 @@ other = "Uma página encontrada" [searchPagesFound] other = "páginas encontradas" +[searchProcessing] +other = "Processando busca..." + [searchAwaitingSearch] other = "Aguardando busca." diff --git a/images/screenshot.png b/images/screenshot.png Binary files differindex c5c0228..8feb799 100644 --- a/images/screenshot.png +++ b/images/screenshot.png diff --git a/images/screenshot2.png b/images/screenshot2.png Binary files differindex 686d08a..eb384e3 100644 --- a/images/screenshot2.png +++ b/images/screenshot2.png diff --git a/images/tn.png b/images/tn.png Binary files differindex 4fe2f7e..e90754f 100644 --- a/images/tn.png +++ b/images/tn.png diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 8608f38..221f169 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -5,13 +5,17 @@ TODO It looks weird when the heading is also a link, but then that's also true for links in ToCs - Would like to test a few more things + Not sure how to deal with it --> +<!-- Get SVG bundle --> +{{ $svgBundleLink := (.Page.Scratch.Get "svgBundle").RelPermalink }} + + {{ $anchoredLinkLevels := seq 2 6 }} {{ if in $anchoredLinkLevels .Level }} - <h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ printf `<a class="anchor" href="#%s" title='%s: %s.'><svg aria-hidden="true"><use xlink:href="#hashtag"/></svg></a>` (.Anchor | safeURL) (T "anchorFor") (.Text | plainify | safeHTML) | safeHTML }} {{ .Text | safeHTML }}</h{{ .Level }}> + <h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ printf `<a class="anchor" href="#%s" title='%s: %s.'><svg aria-hidden="true"><use xlink:href="%s#hashtag"/></svg></a>` (.Anchor | safeURL) (T "anchorFor") (.Text | plainify | safeHTML) ($svgBundleLink) | safeHTML }} {{ .Text | safeHTML }}</h{{ .Level }}> {{ else }} <h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</h{{ .Level }}> {{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3b51bb0..93a0cb1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,6 +6,10 @@ {{- .Scratch.Set "imageProc" (dict "highRes" (.Site.Params.imageProc.highRes | default .Site.Data.default.imageProc.highRes) "mediumRes" (.Site.Params.imageProc.mediumRes | default .Site.Data.default.imageProc.mediumRes) "lowRes" (.Site.Params.imageProc.lowRes | default .Site.Data.default.imageProc.lowRes) "markupAutoResizeWidth" (.Site.Params.imageProc.markupAutoResizeWidth | default .Site.Data.default.imageProc.markupAutoResizeWidth)) -}} +<!-- Generate and set the SVG bundle --> +{{- $svgBundle := resources.Get "svg/bundle.svg" | resources.ExecuteAsTemplate "img/bundle.svg" . | minify | resources.Fingerprint "md5" -}} +{{- .Scratch.Set "svgBundle" $svgBundle -}} + <!DOCTYPE html> <html lang="{{ .Site.Language.Lang }}" data-mode="{{ if .Site.Params.Style.isDark }}dark{{ else }}light{{ end }}"> <head prefix="og: http://ogp.me/ns#"> @@ -28,41 +32,6 @@ {{ partial "footer" . }} </footer> - <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" aria-hidden="true"> - <symbol viewBox="0 0 512 512" id="adjust"> - <path d="M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"/> - </symbol> - - {{ if or (eq .Kind "section") (eq .Layout "search") }} - <symbol viewBox="0 0 512 512" id="search"> - <path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/> - </symbol> - {{ end }} - - {{ block "svg-extra" . }} - <!-- Additional symbols --> - {{ end }} - - {{ if and (.HasShortcode "social") .Site.Params.Social }} - - <!-- Get info about social platform and icon id from "social.json" --> - {{ range .Site.Data.social }} - {{ if and (or (index $.Site.Params.Social.Centralized .entry) (index $.Site.Params.Social.Decentralized .entry)) .icon }} - {{ $iconId := .icon.id }} - {{ $svgEssential := `(?:<svg (?:.*?)(viewBox="(?:.*?)")(?:.*?)>((?:.|\n)+?)(?:</svg>))` }} - {{ $asSymbol := printf `<symbol ${1} id="%s">${2}</symbol>` $iconId }} - - <!-- Get the required SVG file and insert here as a symbol --> - {{ with (resources.Get (printf "svg/%s.svg" $iconId)) }} - {{ .Content | replaceRE $svgEssential $asSymbol | safeHTML }} - {{ end }} - {{ end }} - {{ end }} - - {{ end }} - - </svg> - <!-- Search --> {{ if eq .Layout "search" }} {{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate (printf "js/search.js" | relLangURL) . | minify | fingerprint }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1305fd5..c8aac46 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -32,13 +32,3 @@ </main> {{ end }} - -{{ define "svg-extra" }} - <symbol viewBox="0 0 256 512" id="angle-right"> - <path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/> - </symbol> - - <symbol viewBox="0 0 448 512" id="angle-double-right"> - <path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"/> - </symbol> -{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3a8a2d2..3bb3a85 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -42,7 +42,3 @@ </main> {{ end }} - -{{ define "svg-extra" }} - {{ partialCached "content-svg" . }} -{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 15e535a..eaadede 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -33,9 +33,3 @@ </main> {{ end }} - -{{ define "svg-extra" }} - {{ if .Content }} - {{ partialCached "content-svg" . }} - {{ end }} -{{ end }} diff --git a/layouts/partials/content-svg.html b/layouts/partials/content-svg.html deleted file mode 100644 index 73b0d3c..0000000 --- a/layouts/partials/content-svg.html +++ /dev/null @@ -1,10 +0,0 @@ -<!-- SVG symbols related to pages with content -->
-<symbol viewBox="0 0 448 512" id="hashtag">
- <path d="M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"/>
-</symbol>
-
-{{ if .Site.Params.Style.hasIconAsFootnoteReturnLink }}
- <symbol viewBox="0 0 320 512" id="caret-down">
- <path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/>
- </symbol>
-{{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer-opt.html b/layouts/partials/footer-opt.html index 9fb96ee..d31a4d9 100644 --- a/layouts/partials/footer-opt.html +++ b/layouts/partials/footer-opt.html @@ -1,11 +1,14 @@ +<!-- Get SVG bundle --> +{{ $svgBundleLink := (.Page.Scratch.Get "svgBundle").RelPermalink }} + <!-- Get default accent colors --> -{{ $lightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} -{{ $darkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} +{{ $defaultLightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} +{{ $defaultDarkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} -{{ $allAccentColors := union (slice $lightAccent $darkAccent) .Site.Params.Style.presets }} +{{ $allAccentColors := union (slice $defaultLightAccent $defaultDarkAccent) .Site.Params.Style.presets }} <section class="req-js"> - <button class="outline-dashed" title="{{ T "changeMode" }}"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use xlink:href="#adjust"/></svg></button><input class="outline-dashed" type="color" list="presets" value="{{ if .Site.Params.Style.isDark }}{{ $darkAccent }}{{ else }}{{ $lightAccent }}{{ end }}" title="{{ T "changeAccent" }}" aria-label="{{ T "changeAccent" }}"><datalist id="presets">{{ range $allAccentColors }}<option value="{{ . }}">{{ end }}</datalist> + <button class="outline-dashed" title="{{ T "changeMode" }}"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use xlink:href="{{ $svgBundleLink }}#adjust"/></svg></button><input class="outline-dashed" type="color" list="presets" value="{{ if .Site.Params.Style.isDark }}{{ $defaultDarkAccent }}{{ else }}{{ $defaultLightAccent }}{{ end }}" title="{{ T "changeAccent" }}" aria-label="{{ T "changeAccent" }}"><datalist id="presets">{{ range $allAccentColors }}<option value="{{ . }}">{{ end }}</datalist> </section> <!-- noscript notice --> diff --git a/layouts/partials/head-style.html b/layouts/partials/head-style.html index 4fae5ee..31f15b9 100644 --- a/layouts/partials/head-style.html +++ b/layouts/partials/head-style.html @@ -6,8 +6,8 @@ <!-- If JS is disabled --> <noscript> - {{ $lightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} {{ $darkAccent := .Site.Params.Style.darkAccent | default .Site.Data.default.style.darkAccent }} + {{ $lightAccent := .Site.Params.Style.lightAccent | default .Site.Data.default.style.lightAccent }} {{ if .Site.Params.Style.ignoreSystemSettings }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 158a54b..78cee39 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -366,5 +366,11 @@ <!-- Main JS --> -{{ $main := resources.Get "js/main.js" | resources.ExecuteAsTemplate "js/main.js" . | minify | fingerprint }} -<script src="{{ $main.Permalink }}" integrity="{{ $main.Data.Integrity }}" crossorigin="anonymous"></script> +{{ $mainJS := resources.Get "js/main.js" | resources.ExecuteAsTemplate "js/main.js" . | minify | fingerprint }} + +<!-- Use ESBuild if available --> +{{ if ge hugo.Version "0.74" }} + {{ $mainJS = resources.Get "js/main.js" | resources.ExecuteAsTemplate "js/main.js" . | js.Build (dict "minify" "true") | fingerprint }} +{{ end }} + +<script src="{{ $mainJS.Permalink }}" integrity="{{ $mainJS.Data.Integrity }}" crossorigin="anonymous"></script> diff --git a/layouts/partials/katex-font-preload.html b/layouts/partials/katex-font-preload.html index bbe53e7..988bab1 100644 --- a/layouts/partials/katex-font-preload.html +++ b/layouts/partials/katex-font-preload.html @@ -4,7 +4,7 @@ Adjust as necessary --> -{{ $katexVersion := "0.15.2" }} +{{ $katexVersion := "0.15.3" }} <link rel="preload" href="/libs/katex@{{ $katexVersion }}/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="/libs/katex@{{ $katexVersion }}/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous"> diff --git a/layouts/partials/katex.html b/layouts/partials/katex.html index e336f80..c829c70 100644 --- a/layouts/partials/katex.html +++ b/layouts/partials/katex.html @@ -1,5 +1,5 @@ <!-- KaTeX -->
-{{ $katexVersion := "0.15.2" }}
+{{ $katexVersion := "0.15.3" }}
{{ $katexCSS := resources.Get (printf "libs/katex@%s/dist/katex.css" $katexVersion) | minify | fingerprint }}
<link rel="stylesheet" href="{{ $katexCSS.Permalink }}" integrity="{{ $katexCSS.Data.Integrity }}" crossorigin="anonymous">
@@ -44,4 +44,3 @@ {{ $katexCustomRender := slice $autoRender $katexAutoRenderOptions $katexPostRender | resources.Concat "js/katex-custom-render.js" | minify | fingerprint }}
<script defer src="{{ $katexCustomRender.Permalink }}" integrity="{{ $katexCustomRender.Data.Integrity }}" crossorigin="anonymous"></script>
-
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 51500df..8445cc1 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,5 +1,8 @@ -{{ $pag := .Paginator }} +<!-- Get SVG bundle --> +{{ $svgBundleLink := (.Scratch.Get "svgBundle").RelPermalink }} + +{{ $pag := .Paginator }} <!-- Number of links either side of the current page. Default value is 2 --> {{ $adjacentLinks := 1 }} @@ -24,7 +27,7 @@ <li> <a class="btn" href="{{ $pag.First.URL }}" aria-label="{{ T "ariaGoToFirst" }}"> <svg aria-hidden="true"> - <use transform="rotate(180) translate(-18 -18)" xlink:href="#angle-double-right"/> + <use transform="rotate(180) translate(-18 -18)" xlink:href="{{ $svgBundleLink }}#angle-double-right"/> </svg> </a> </li> @@ -35,7 +38,7 @@ <li> <a class="btn" href="{{ $pag.Prev.URL }}" aria-label="{{ T "ariaGoToPrev" }}"> <svg transform="rotate(180)" aria-hidden="true"> - <use xlink:href="#angle-right"/> + <use xlink:href="{{ $svgBundleLink }}#angle-right"/> </svg> </a> </li> @@ -104,7 +107,7 @@ <li> <a class="btn" href="{{ $pag.Next.URL }}" aria-label="{{ T "ariaGoToNext" }}"> <svg aria-hidden="true"> - <use xlink:href="#angle-right"/> + <use xlink:href="{{ $svgBundleLink }}#angle-right"/> </svg> </a> </li> @@ -115,7 +118,7 @@ <li> <a class="btn" href="{{ $pag.Last.URL }}" aria-label="{{ T "ariaGoToLast" }}"> <svg aria-hidden="true"> - <use xlink:href="#angle-double-right"/> + <use xlink:href="{{ $svgBundleLink }}#angle-double-right"/> </svg> </a> </li> diff --git a/layouts/partials/processed-content.html b/layouts/partials/processed-content.html index 21ce5b0..8acb7ff 100644 --- a/layouts/partials/processed-content.html +++ b/layouts/partials/processed-content.html @@ -32,6 +32,9 @@ with line numbers (.lntd > .chroma).
-->
+<!-- Get SVG bundle -->
+{{ $svgBundleLink := (.Scratch.Get "svgBundle").RelPermalink }}
+
<!-- i18n -->
{{ $references := `(<section class="footnotes" role="doc-endnotes">)` }}
{{ $seeFootnotes := `(class="footnote-ref")` }}
@@ -70,7 +73,7 @@ <!-- OR replace the footnote return links with a SVG icon -->
{{ if .Site.Params.Style.hasIconAsFootnoteReturnLink }}
- {{ $improvedFootnoteReturnLink = printf `${1}<svg transform="rotate(180) translate(0 -1)" aria-hidden="true"><use xlink:href="#caret-down"/></svg>${2}` }}
+ {{ $improvedFootnoteReturnLink = printf `${1}<svg transform="rotate(180) translate(0 -1)" aria-hidden="true"><use xlink:href="%s#caret-down"/></svg>${2}` $svgBundleLink }}
{{ end }}
<!--
diff --git a/layouts/partials/search-form.html b/layouts/partials/search-form.html index 142af3b..855b7bf 100644 --- a/layouts/partials/search-form.html +++ b/layouts/partials/search-form.html @@ -1,3 +1,6 @@ +<!-- Get SVG bundle --> +{{ $svgBundleLink := (.Scratch.Get "svgBundle").RelPermalink }} + <!-- Assume that the first page in a collection with pages using the "search" layout is the main search page @@ -7,13 +10,14 @@ {{ $minLength := .Site.Params.Search.minLength | default .Site.Data.default.search.minLength }} {{ $maxLength := .Site.Params.Search.maxLength | default .Site.Data.default.search.maxLength }} + <section class="req-js search-box"> {{ if eq .Layout "search" }} <form role="search"> {{ else }} <form role="search" action="{{ $searchPage.RelPermalink }}"> {{ end }} - <label class="label-form" for="search-input">{{ T "searchLabel" }}</label><input class="input-text" type="search" id="search-input" title='{{ T "searchInput" (dict "minLength" $minLength "maxLength" $maxLength) }}' name="q" {{ with .Site.Params.Search.placeholder }}placeholder="{{ . }}"{{ end }} minlength="{{ $minLength }}" maxlength="{{ $maxLength }}" pattern="^[\S].*" required><button aria-label="{{ T "searchAriaButton" }}" class="btn outline-dashed" type="submit"><svg aria-hidden="true"><use xlink:href="#search"/></svg></button> + <label class="label-form" for="search-input">{{ T "searchLabel" }}</label><input class="input-text" type="search" id="search-input" title='{{ T "searchInput" (dict "minLength" $minLength "maxLength" $maxLength) }}' name="q" {{ with .Site.Params.Search.placeholder }}placeholder="{{ . }}"{{ end }} minlength="{{ $minLength }}" maxlength="{{ $maxLength }}" pattern="^[\S].*" required><button aria-label="{{ T "searchAriaButton" }}" class="btn outline-dashed" type="submit"><svg aria-hidden="true"><use xlink:href="{{ $svgBundleLink }}#search"/></svg></button> </form> <hr> </section> diff --git a/layouts/shortcodes/gifoid.html b/layouts/shortcodes/gifoid.html index 48f3fac..7ff67a0 100644 --- a/layouts/shortcodes/gifoid.html +++ b/layouts/shortcodes/gifoid.html @@ -34,8 +34,13 @@ {{ $videoPath := .Page.Params.videoPath | default "video" }} {{ $filePath := path.Join $videoPath $fileName }} +{{ $videoFormats := slice "mp4" "webm" }} + <video class="gifoid {{ $class }}" autoplay loop muted playsinline {{ with $title }}title="{{ . }}"{{ end }}> - <source src="{{ $filePath }}.mp4" type="video/mp4"> - <source src="{{ $filePath }}.webm" type="video/webm"> + + {{ range $videoFormats }} + <source src="{{ ($.Page.Resources.GetMatch (printf "%s.%s" $filePath .)).RelPermalink }}" type="{{ printf "video/%s" .}}"> + {{ end }} + <p class="error">{{ T "missingCodec" }}</p> </video> diff --git a/layouts/shortcodes/social.html b/layouts/shortcodes/social.html index b86c066..1fbca63 100644 --- a/layouts/shortcodes/social.html +++ b/layouts/shortcodes/social.html @@ -1,8 +1,13 @@ {{ if .Site.Params.Social }} + + <!-- Get SVG bundle --> + {{ $svgBundleLink := (.Page.Scratch.Get "svgBundle").RelPermalink }} + <!-- Reduce repetition... --> {{ $centralized := $.Site.Params.Social.Centralized }} {{ $decentralized := $.Site.Params.Social.Decentralized }} - + + <section class="social"> {{ range .Site.Data.social }} @@ -25,7 +30,7 @@ <a class="btn" href="{{ $url }}" rel="me nofollow" title="{{ $label }}"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> - <use xlink:href="#{{ $currentIcon }}"/> + <use xlink:href="{{ $svgBundleLink }}#{{ $currentIcon }}"/> </svg> <p>{{ $label }}</p> @@ -40,7 +45,7 @@ {{ range (index $decentralized $currentEntry) }} <a class="btn" href="{{ index . 0 }}" rel="me nofollow" title="{{ printf "%s (%s)" (index . 1) $currentLabel }}"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> - <use xlink:href="#{{ $currentIcon }}"/> + <use xlink:href="{{ $svgBundleLink }}#{{ $currentIcon }}"/> </svg> <p>{{ index . 1 | truncate 15 }}</p> diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.ttf Binary files differindex c6f9a5e..c6f9a5e 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff Binary files differindex b804d7b..b804d7b 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff2 Binary files differindex 0acaaff..0acaaff 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_AMS-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_AMS-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.ttf Binary files differindex 9ff4a5e..9ff4a5e 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff Binary files differindex 9759710..9759710 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff2 Binary files differindex f390922..f390922 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Bold.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.ttf Binary files differindex f522294..f522294 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff Binary files differindex 9bdd534..9bdd534 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff2 Binary files differindex 75344a1..75344a1 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Caligraphic-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.ttf Binary files differindex 4e98259..4e98259 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff Binary files differindex e7730f6..e7730f6 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff2 Binary files differindex 395f28b..395f28b 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Bold.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Bold.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.ttf Binary files differindex b8461b2..b8461b2 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff Binary files differindex acab069..acab069 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff2 Binary files differindex 735f694..735f694 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Fraktur-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Fraktur-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.ttf Binary files differindex 4060e62..4060e62 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff Binary files differindex f38136a..f38136a 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff2 Binary files differindex ab2ad21..ab2ad21 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Bold.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Bold.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.ttf Binary files differindex dc00797..dc00797 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff Binary files differindex 67807b0..67807b0 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff2 Binary files differindex 5931794..5931794 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-BoldItalic.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-BoldItalic.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.ttf Binary files differindex 0e9b0f3..0e9b0f3 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff Binary files differindex 6f43b59..6f43b59 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff2 Binary files differindex b50920e..b50920e 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Italic.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Italic.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.ttf Binary files differindex dd45e1e..dd45e1e 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff Binary files differindex 21f5812..21f5812 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff2 Binary files differindex eb24a7b..eb24a7b 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Main-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Main-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.ttf Binary files differindex 728ce7a..728ce7a 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff Binary files differindex 0ae390d..0ae390d 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff2 Binary files differindex 2965702..2965702 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-BoldItalic.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-BoldItalic.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.ttf Binary files differindex 70d559b..70d559b 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff Binary files differindex eb5159d..eb5159d 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff2 Binary files differindex 215c143..215c143 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Math-Italic.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Math-Italic.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.ttf Binary files differindex 2f65a8a..2f65a8a 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff Binary files differindex 8d47c02..8d47c02 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff2 Binary files differindex cfaa3bd..cfaa3bd 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Bold.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Bold.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.ttf Binary files differindex d5850df..d5850df 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff Binary files differindex 7e02df9..7e02df9 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff2 Binary files differindex 349c06d..349c06d 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Italic.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Italic.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.ttf Binary files differindex 537279f..537279f 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff Binary files differindex 31b8482..31b8482 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff2 Binary files differindex a90eea8..a90eea8 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_SansSerif-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_SansSerif-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.ttf Binary files differindex fd679bf..fd679bf 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff Binary files differindex 0e7da82..0e7da82 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff2 Binary files differindex b3048fc..b3048fc 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Script-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Script-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.ttf Binary files differindex 871fd7d..871fd7d 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff Binary files differindex 7f292d9..7f292d9 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff2 Binary files differindex c5a8462..c5a8462 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size1-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size1-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.ttf Binary files differindex 7a212ca..7a212ca 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff Binary files differindex d241d9b..d241d9b 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff2 Binary files differindex e1bccfe..e1bccfe 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size2-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size2-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.ttf Binary files differindex 00bff34..00bff34 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff Binary files differindex e6e9b65..e6e9b65 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff2 Binary files differindex 249a286..249a286 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size3-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size3-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.ttf Binary files differindex 74f0892..74f0892 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff Binary files differindex e1ec545..e1ec545 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff2 Binary files differindex 680c130..680c130 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Size4-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Size4-Regular.woff2 diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.ttf b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.ttf Binary files differindex c83252c..c83252c 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.ttf +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.ttf diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff Binary files differindex 2432419..2432419 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff diff --git a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff2 b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff2 Binary files differindex 771f1af..771f1af 100644 --- a/static/libs/katex@0.15.2/dist/fonts/KaTeX_Typewriter-Regular.woff2 +++ b/static/libs/katex@0.15.3/dist/fonts/KaTeX_Typewriter-Regular.woff2 |