Update MathJax official CDN and respective code block

Closes rdwatters/hugo-docs-concept#104
See PR gohugoio/hugo#3416
This commit is contained in:
Ryan Watters 2017-04-30 14:15:31 -05:00
parent 86f36c385c
commit b6dc570cb4
2 changed files with 2 additions and 4 deletions

View File

@ -118,11 +118,11 @@ 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 secure MathJax CDN by include a `<script>` tag for the officially recommended secure CDN ([cdn.js.com](https://cdnjs.com)):
{{% code file="add-mathjax-to-page.html" %}}
```html
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
```
{{% /code %}}

View File

@ -197,8 +197,6 @@ layout: mylayout
---
```
{{% /code %}}
<!-- See https://discuss.gohugo.io/t/path-not-works/6387 -->
<!-- ### `path`