Skip to content

Commit

Permalink
[jekyll] add mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
venik committed Nov 20, 2020
1 parent b49cf5e commit 83eabbf
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
packages: ['base', 'ams']
},
loader: {
load: ['ui/menu', '[tex]/ams']
}
};
</script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>

<body>

{%- include header.html -%}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

{%- include footer.html -%}

</body>

</html>

0 comments on commit 83eabbf

Please sign in to comment.