I am moving my blog from Wordpress to GitHub pages. I used Barry Clark's instructions here: https://www.smashingmagazine.com/2014/08/build-blog-jekyll-github-pages/ for getting started using Jekyll and GitHub Pages. More specifically, I have forked the jekyll-now repository, renamed it, and have successfully served up a minimal working website at https://aaronmams.github.io.
I have added a simple first post but, after hours of reading SO posts and other blog posts, am still unable to include equations in a post.
Here is what I have done:
- added the MathJax javascript to the file aaronmams.github.io/_layouts/page.html as suggested here http://gastonsanchez.com/opinion/2014/02/16/Mathjax-with-jekyll/
I also added the MathJax javascript to the file aaronmams.github.io/_layouts as was suggested here Using MathJax with Jekyll
I added the following line to an existing post:
$$a^2+b^2$$.
I commit all changes and navigate to https://aaronmams.github.io/test and I can see that the quantity inside $$ $$ has not been printed.
- I even tried adding the MathJax javascript directly to the post (test.md) as suggested by Carl here: https://github.com/cboettig/sandbox/blob/master/R-tricks/math.Rmd
I realize that some variant of this question has been asked many times. However, I've read all the SO threads I could find and I'm no closer to getting equations rendered on my blog.
Can anyone offer some advice here?