diff --git a/_includes/layouts/default.njk b/_includes/layouts/default.njk index c9315be02..731138ec4 100644 --- a/_includes/layouts/default.njk +++ b/_includes/layouts/default.njk @@ -25,7 +25,7 @@ {% endif %} {% endif %} - {% if usemathjax %} + {% if useMath %} {# {% include "utilities/mathjax.html" %} #} {% include "utilities/katex.html" %} {% endif %} diff --git a/archive/posts/tamuctf22/2022-04-23-tamuctf-2022-quick-mafs.md b/archive/posts/tamuctf22/2022-04-23-tamuctf-2022-quick-mafs.md index d1034516c..2c227e7e7 100644 --- a/archive/posts/tamuctf22/2022-04-23-tamuctf-2022-quick-mafs.md +++ b/archive/posts/tamuctf22/2022-04-23-tamuctf-2022-quick-mafs.md @@ -7,7 +7,7 @@ tags: - python - programming thumbnail_src: assets/inspector-gadget.png -usemathjax: true +useMath: true --- ### Challenge Description diff --git a/archive/template.md b/archive/template.md index a2d24f7c9..9c01be4be 100644 --- a/archive/template.md +++ b/archive/template.md @@ -14,7 +14,7 @@ thumbnail_banner: true # or false depending if you want the thumbnail to show on keywords: key words # Not really important. comments: true # Enable comments. sharable: false # Enable share buttons. -usemathjax: false +useMath: false pitch: A description displayed in the profile. track_id: 00000011 # soundcloud track id score_id: 00000012 # musescore track id diff --git a/content/pages/postlike/styleguide-math.md b/content/pages/postlike/styleguide-math.md index 586126f11..c2fdfd8dc 100644 --- a/content/pages/postlike/styleguide-math.md +++ b/content/pages/postlike/styleguide-math.md @@ -3,7 +3,7 @@ title: "Styleguide – Math" excerpt: "Minimal style tests for math." tags: - mathematics -usemathjax: true +useMath: true related: disable: false tags: [mathematics] diff --git a/content/pages/postlike/styleguide.md b/content/pages/postlike/styleguide.md index 94093768e..4a7e698e5 100644 --- a/content/pages/postlike/styleguide.md +++ b/content/pages/postlike/styleguide.md @@ -15,7 +15,7 @@ tags: - composition - learning thumbnail_banner: true -usemathjax: true +useMath: true pitch: This is a dummy page designed to test all aspects of style. track_id: 1433470732 score_id: 9645115 diff --git a/content/posts/ctf/hkcert22/2022-11-14-hkcert-2022-base64-encryption.md b/content/posts/ctf/hkcert22/2022-11-14-hkcert-2022-base64-encryption.md index 3d7f64a90..218bc19ac 100644 --- a/content/posts/ctf/hkcert22/2022-11-14-hkcert-2022-base64-encryption.md +++ b/content/posts/ctf/hkcert22/2022-11-14-hkcert-2022-base64-encryption.md @@ -5,7 +5,7 @@ tags: - cryptography - python thumbnail_src: ~/assets/img/posts/thumbnail/hkcert22-thumbnail.jpg -usemathjax: true +useMath: true --- The challenge looks deceptively simple. Chinese has over 50,000 characters. Base64 just has 64. So it should be easy right? diff --git a/content/posts/programming/aoc-2021/2022-08-09-aoc-2021-haskell-utils.md b/content/posts/programming/aoc-2021/2022-08-09-aoc-2021-haskell-utils.md index 26eae74cd..63a65aa66 100644 --- a/content/posts/programming/aoc-2021/2022-08-09-aoc-2021-haskell-utils.md +++ b/content/posts/programming/aoc-2021/2022-08-09-aoc-2021-haskell-utils.md @@ -7,7 +7,7 @@ tags: - haskell - fp thumbnail_src: assets/recycle-hs-utils.jpg -usemathjax: true +useMath: true related: tags: [aoc, haskell] --- diff --git a/content/posts/programming/aoc-2021/2022-08-25-aoc-2021-day-24.md b/content/posts/programming/aoc-2021/2022-08-25-aoc-2021-day-24.md index 3c5f30ab0..d58073c56 100644 --- a/content/posts/programming/aoc-2021/2022-08-25-aoc-2021-day-24.md +++ b/content/posts/programming/aoc-2021/2022-08-25-aoc-2021-day-24.md @@ -8,7 +8,7 @@ tags: - reverse - writeup thumbnail_src: assets/z3.jpg -usemathjax: true +useMath: true related: tags: [aoc, programming, writeup] --- diff --git a/content/posts/programming/aoc-2021/2022-12-02-aoc-2021-day-22.md b/content/posts/programming/aoc-2021/2022-12-02-aoc-2021-day-22.md index cf92125b2..3989e8884 100644 --- a/content/posts/programming/aoc-2021/2022-12-02-aoc-2021-day-22.md +++ b/content/posts/programming/aoc-2021/2022-12-02-aoc-2021-day-22.md @@ -8,7 +8,7 @@ tags: - mathematics - writeup thumbnail_src: assets/aoc-2021-day-22-thumbnail.jpg -usemathjax: true +useMath: true related: tags: [aoc, programming] --- diff --git a/content/posts/programming/concepts/2023-04-24-the-mathematics-of-types.md b/content/posts/programming/concepts/2023-04-24-the-mathematics-of-types.md index aa6a0acaf..b6521955f 100644 --- a/content/posts/programming/concepts/2023-04-24-the-mathematics-of-types.md +++ b/content/posts/programming/concepts/2023-04-24-the-mathematics-of-types.md @@ -10,7 +10,7 @@ tags: - programming-languages thumbnail_src: assets/abstract.jpg # thumbnail_banner: true -usemathjax: true +useMath: true related: auto: true --- diff --git a/content/posts/programming/concepts/2023-10-02-subtype-metaprogramming-is-mostly-harmless.md b/content/posts/programming/concepts/2023-10-02-subtype-metaprogramming-is-mostly-harmless.md index 5fe899819..c8927c902 100644 --- a/content/posts/programming/concepts/2023-10-02-subtype-metaprogramming-is-mostly-harmless.md +++ b/content/posts/programming/concepts/2023-10-02-subtype-metaprogramming-is-mostly-harmless.md @@ -11,7 +11,7 @@ tags: - metaprogramming - oop - writeup -usemathjax: true +useMath: true thumbnail_src: assets/thumbnail.jpg thumbnail_banner: true redirect_from: diff --git a/content/posts/programming/digital-audio-synthesis/2023-02-24-digital-audio-synthesis-for-dummies-part-1.md b/content/posts/programming/digital-audio-synthesis/2023-02-24-digital-audio-synthesis-for-dummies-part-1.md index 34bb0269e..daf0af8f5 100644 --- a/content/posts/programming/digital-audio-synthesis/2023-02-24-digital-audio-synthesis-for-dummies-part-1.md +++ b/content/posts/programming/digital-audio-synthesis/2023-02-24-digital-audio-synthesis-for-dummies-part-1.md @@ -9,7 +9,7 @@ tags: - synths thumbnail_src: assets/synthwave-a-major-space-1.jpg thumbnail_banner: true -usemathjax: true +useMath: true related: posts: [r/digital-audio-synthesis-for-dummies-part-.*/r, stm32-midi-keyboard] auto: false diff --git a/content/posts/programming/digital-audio-synthesis/2023-03-09-digital-audio-synthesis-for-dummies-part-2.md b/content/posts/programming/digital-audio-synthesis/2023-03-09-digital-audio-synthesis-for-dummies-part-2.md index dba7c5420..7c2bf8ef9 100644 --- a/content/posts/programming/digital-audio-synthesis/2023-03-09-digital-audio-synthesis-for-dummies-part-2.md +++ b/content/posts/programming/digital-audio-synthesis/2023-03-09-digital-audio-synthesis-for-dummies-part-2.md @@ -12,7 +12,7 @@ tags: - synths thumbnail_src: assets/synthwave-a-major-space-2.jpg thumbnail_banner: true -usemathjax: true +useMath: true related: posts: [r/digital-audio-synthesis-for-dummies-part-.*/r, stm32-midi-keyboard] auto: false diff --git a/content/posts/programming/digital-audio-synthesis/2023-05-24-digital-audio-synthesis-for-dummies-part-3.md b/content/posts/programming/digital-audio-synthesis/2023-05-24-digital-audio-synthesis-for-dummies-part-3.md index ac114ecde..efc210217 100644 --- a/content/posts/programming/digital-audio-synthesis/2023-05-24-digital-audio-synthesis-for-dummies-part-3.md +++ b/content/posts/programming/digital-audio-synthesis/2023-05-24-digital-audio-synthesis-for-dummies-part-3.md @@ -13,7 +13,7 @@ tags: - synths thumbnail_src: assets/synthwave-a-major-space-3.jpg thumbnail_banner: true -usemathjax: true +useMath: true related: posts: [r/digital-audio-synthesis-for-dummies-part-.*/r, stm32-midi-keyboard] auto: false diff --git a/package-lock.json b/package-lock.json index 112296e12..f576626b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "bootstrap": "^5.3.2", "font-awesome": "^4.7.0", "jquery": "^3.7.1", + "katex": "^0.16.9", "lunr": "^2.3.9", "magnific-popup": "^1.1.0", "prismjs": "^1.29.0", @@ -5915,6 +5916,29 @@ "node": ">=0.10.0" } }, + "node_modules/katex": { + "version": "0.16.9", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.9.tgz", + "integrity": "sha512-fsSYjWS0EEOwvy81j3vRA8TEAhQhKiqO+FQaKWp0m39qwOzHVBgAUBIXWj1pB+O2W3fIpNa6Y9KSKCVbfPhyAQ==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "engines": { + "node": ">= 12" + } + }, "node_modules/keyv": { "version": "4.5.3", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", @@ -13570,6 +13594,21 @@ "integrity": "sha512-3KF80UaaSSxo8jVnRYtMKNGFOoVPBdkkVPsw+Ad0y4oxKXPduS6G6iHkrf69yJVff/VAaYXkV42rtZ7daJxU3w==", "dev": true }, + "katex": { + "version": "0.16.9", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.9.tgz", + "integrity": "sha512-fsSYjWS0EEOwvy81j3vRA8TEAhQhKiqO+FQaKWp0m39qwOzHVBgAUBIXWj1pB+O2W3fIpNa6Y9KSKCVbfPhyAQ==", + "requires": { + "commander": "^8.3.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + } + } + }, "keyv": { "version": "4.5.3", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", diff --git a/package.json b/package.json index 469e9713d..16c1dbe8f 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "bootstrap": "^5.3.2", "font-awesome": "^4.7.0", "jquery": "^3.7.1", + "katex": "^0.16.9", "lunr": "^2.3.9", "magnific-popup": "^1.1.0", "prismjs": "^1.29.0",