From 53e96dcce37b1a8411760c40e73cfe6314827071 Mon Sep 17 00:00:00 2001 From: Gabriel Ybarra Marcaida Date: Tue, 5 Aug 2025 11:06:28 +0000 Subject: [PATCH] Made loading mathjax, plotly and mermaid optional for each page --- _config.yml | 3 +++ _includes/footer/custom.html | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index 78b1f0e08b267..eb857ad41a89d 100644 --- a/_config.yml +++ b/_config.yml @@ -244,6 +244,9 @@ defaults: comments: true share: true related: true + plotly: true + mermaid: true + mathjax: true # _pages - scope: path: "" diff --git a/_includes/footer/custom.html b/_includes/footer/custom.html index 97b950497070d..5f4abe1dd7c82 100644 --- a/_includes/footer/custom.html +++ b/_includes/footer/custom.html @@ -3,17 +3,23 @@ Sitemap - - + {% if page.mathjax %} + + +{% endif %} - +{% if page.plotly %} + +{% endif %} - + {% if page.mermaid %} + +{% endif %}