appernetic / hugo-bootstrap-premium

Hugo appernetic bootstrap premium theme
MIT License
83 stars 62 forks source link

Mathjax support #10

Closed dselivanov closed 7 years ago

dselivanov commented 7 years ago

Hi. Thanks for great theme. Not sure if you are interested in this PR - it adds mathjax support. So feel free to decline.

appernetic commented 7 years ago

Hi, thanks!

Mathjax could be useful.

appernetic commented 7 years ago

Do you have any instructions on how to use it?

Maybe some helpful instructions that I could add to the README:

dselivanov commented 7 years ago

For inline math in markdown files wrap formulas with $. For example: $a = /alpha X_i$. For "display style mathematics" wrap in double dollar $$ and <div> tags: <div>$$a = /alpha X_i$$</div>. Here is reference from hugo site.

appernetic commented 7 years ago

Ok, thanks!

I include a bit from here https://gohugo.io/tutorials/mathjax/ in the README and also added a class in the CSS.

appernetic commented 7 years ago

And moved the script from footer to script.html partials.