Install MathJax

The easiest way to install MathJax is to use their CDN, but you can install your own copy as well. We'll need to add the script to the ghost theme directly, so open up the <ghost-directory>/content/themes/<theme-name> directory. You can either add the script to the default.hbs file, which will load the script on all pages of your blog, or you can only load it on post pages by adding it to post.hbs. Note that the latter means that equations will not display correctly on your index pages, within static pages, or on tag pages.

Install your own copy of MathJax (skip if using the CDN)

Place the folder into <ghost-directory>/content/themes/<theme-name>/assets/js

Add necessary contents to default.hbs

Open default.hbs

If you're using the CDN, insert the following text directly above the line </body> (near the end of the file):<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

If you're using your own copy, insert the following text directly above the line </body> (near the end of the file):<script type="text/javascript" src="{{asset "MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"}}"></script>

Restart Ghost

Insert your equations

You can use TeX and LaTeX notation, MathML notation, AsciiMath notation, or a combination of the three.