Enabling MathJax
For my post on schedule algebra I used math notation. To properly display the math I installed MathJax which turned out to be fairly easy. Here’s how it goes:
Copy file _includes/head.html
from the minima theme to your local _includes/
directory.
Add the following lines of code:
<!-- for mathjax support -->
{% if page.usemathjax %}
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
Add usemathjax: true
to the front matter any page that uses MathJax.
For example, now you can write
\\( \sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} \\)
to get