summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTakuya Kitazawa <k.takuti@gmail.com>2017-05-01 04:43:38 +0900
committerAlbert Nigmatzianov <albertnigma@gmail.com>2017-04-30 21:43:38 +0200
commit4b637ac041d17b22187f5ccd0f65461f0065aaa9 (patch)
tree8f809d0af8ffe67a27f816579e82d3808e33342a /docs
parentde7c32a1a880820252e922e0c9fcf69e109c0d1b (diff)
docs: Replace cdn.mathjax.org with cdnjs.cloudflare.com
Diffstat (limited to 'docs')
-rw-r--r--docs/content/tutorials/mathjax.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/tutorials/mathjax.md b/docs/content/tutorials/mathjax.md
index d0cd2d247..e8d896354 100644
--- a/docs/content/tutorials/mathjax.md
+++ b/docs/content/tutorials/mathjax.md
@@ -20,10 +20,10 @@ This is not an introduction into actually using MathJax to render typeset mathem
## Enabling MathJax
-The first step is to enable MathJax on pages that you would like to have typeset math. There are multiple ways to do this (adventurous readers can consult the [Loading and Configuring](http://docs.mathjax.org/en/latest/configuration.html) section of the MathJax documentation for additional methods of including MathJax), but the easiest way is to use the secure MathJax CDN by including the following HTML snippet in the source of a page:
+The first step is to enable MathJax on pages that you would like to have typeset math. There are multiple ways to do this (adventurous readers can consult the [Loading and Configuring](http://docs.mathjax.org/en/latest/configuration.html) section of the MathJax documentation for additional methods of including MathJax), but the easiest way is to use [the officially recommended secure CDN](https://cdnjs.com/) by including the following HTML snippet in the source of a page:
<script type="text/javascript"
- src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
One way to ensure that this code is included in all pages is to put it in one of the templates that live in the `layouts/partials/` directory. For example, I have included this in the bottom of my template `footer.html` because I know that the footer will be included in every page of my website.