From adfbe18e6425de7dbc1035195eab5f0e8a622acd Mon Sep 17 00:00:00 2001 From: Maruan Al-Shedivat Date: Tue, 22 Sep 2020 22:26:13 -0400 Subject: [PATCH] Switch to MathJax 3.x. Fixes #115. --- _config.yml | 10 ++---- _includes/head.html | 58 ++++++++++++++++++++++++++++++++++ _includes/hemline.html | 60 ------------------------------------ _layouts/default.html | 2 -- _layouts/distill.html | 4 +-- _posts/2015-10-20-math.md | 4 +-- _posts/2018-12-22-distill.md | 6 ++-- assets/js/katex.js | 15 --------- 8 files changed, 67 insertions(+), 92 deletions(-) delete mode 100644 _includes/hemline.html delete mode 100644 assets/js/katex.js diff --git a/_config.yml b/_config.yml index 3bdeafd..a627c94 100644 --- a/_config.yml +++ b/_config.yml @@ -146,9 +146,8 @@ scholar: # ----------------------------------------------------------------------------- enable_google_analytics: false -enable_katex: true enable_mansory: true -enable_progressbar: true +enable_math: true enable_tooltips: false show_social_icons: false @@ -170,11 +169,8 @@ fontawesome: jquery: version: "3.5.1" integrity: "sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" -katex: - version: "0.12.0" - integrity: - css: "sha512-h7nl+xz8wgDlNM4NqKEM4F1NkIRS17M9+uJwIGwuo8vGqIl4BhuCKdxjWEINm+xyrUjNCnK5dCrhM0sj+wTIXw==" - js: "sha512-/CMIhXiDA3m2c9kzRyd97MTb3MC6OVnx4TElQ7fkkoRghwDf6gi41gaT1PwF270W6+J60uTmwgeRpNpJdRV6sg==" +mathjax: + version: "3.1.2" mansory: version: "4.2.2" integrity: "sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI=" diff --git a/_includes/head.html b/_includes/head.html index 999cdd7..02b7a0a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,6 +8,10 @@ + + + + @@ -29,3 +33,57 @@ {% endif %} + + + + + + + +{% if site.enable_math %} + + + +{% endif %} + +{% if site.enable_mansory %} + + + + + + +{% endif %} + +{% if site.enable_tooltips %} + + +{% endif %} + +{% if site.enable_google_analytics %} + + +{% endif %} diff --git a/_includes/hemline.html b/_includes/hemline.html deleted file mode 100644 index 13f4fcc..0000000 --- a/_includes/hemline.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - -{% if site.enable_katex %} - - - - -{% endif %} - -{% if site.enable_mansory %} - - - - - - -{% endif %} - -{% if site.enable_tooltips %} - - -{% endif %} - -{% if site.enable_google_analytics %} - - -{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index a94e605..4487e15 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -23,6 +23,4 @@ - {% include hemline.html %} - diff --git a/_layouts/distill.html b/_layouts/distill.html index e9b8b52..1e01aee 100644 --- a/_layouts/distill.html +++ b/_layouts/distill.html @@ -12,7 +12,7 @@ -