How does one make mathjax work with your Jekyll blog?

How does one make mathjax work with your Jekyll blog?

is this the official way to do it?

http://zjuwhw.github.io/2017/06/04/MathJax.html