From 0b76d9af89713b2c3a7f3df63509f0b892e4a754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Loyola?= Date: Tue, 28 Jun 2022 14:58:11 -0300 Subject: [PATCH] Load MathJax only on pages with usemathjax flag In order to load MathJax in a page, the page header (section with the post information, ie. title, authors, etc) should contain the flag `usemathjax: true`. --- _includes/head/custom.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_includes/head/custom.html b/_includes/head/custom.html index c2c3332..c95f6c7 100644 --- a/_includes/head/custom.html +++ b/_includes/head/custom.html @@ -7,6 +7,8 @@ - \ No newline at end of file + + +{% if page.usemathjax %} + +{% endif %} \ No newline at end of file