Skip to content

Commit 7c4255f

Browse files
committed
Add: (layouts/partials/math.html)
See <https://gohugo.io/content-management/mathematics/#step-2>.
1 parent 9df68e7 commit 7c4255f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

layouts/partials/math.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{/* See <https://gohugo.io/content-management/mathematics/#step-2>. */}}
2+
3+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
4+
<script>
5+
MathJax = {
6+
tex: {
7+
displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
8+
inlineMath: [['\\(', '\\)']] // inline
9+
}
10+
};
11+
</script>

0 commit comments

Comments
 (0)