Maths equation example

Add this in the _layout/page.hmtm:

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

Then, add this in the _layout/post.html:

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

That’s it. Now we can use Mathjax as follow:

1) Example

2) Example $$ 5 + 5 $$

3) Example

4) Example

5) Example $$\frac{a}{b} = 1$$

6) Example: $$\frac{(n^2+n)(2n+1)}{6}$$

Read more: