Implement MathJax
If a post needs to render math equations, it only has to include the mathjax.json params.
This commit is contained in:
parent
11d32c940a
commit
78b4a745bd
19
assets/js/MathJax/MathJax.js
vendored
Normal file
19
assets/js/MathJax/MathJax.js
vendored
Normal file
File diff suppressed because one or more lines are too long
57
assets/js/MathJax/config/TeX-AMS_CHTML.js
vendored
Normal file
57
assets/js/MathJax/config/TeX-AMS_CHTML.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff
vendored
Normal file
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff
vendored
Normal file
Binary file not shown.
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff
vendored
Normal file
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff
vendored
Normal file
Binary file not shown.
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff
vendored
Normal file
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff
vendored
Normal file
Binary file not shown.
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff
vendored
Normal file
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff
vendored
Normal file
Binary file not shown.
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff
vendored
Normal file
BIN
assets/js/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff
vendored
Normal file
Binary file not shown.
19
assets/js/MathJax/jax/output/CommonHTML/autoload/mtable.js
vendored
Normal file
19
assets/js/MathJax/jax/output/CommonHTML/autoload/mtable.js
vendored
Normal file
File diff suppressed because one or more lines are too long
19
assets/js/MathJax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js
vendored
Normal file
19
assets/js/MathJax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js
vendored
Normal file
File diff suppressed because one or more lines are too long
19
assets/js/MathJax/jax/output/CommonHTML/fonts/TeX/fontdata.js
vendored
Normal file
19
assets/js/MathJax/jax/output/CommonHTML/fonts/TeX/fontdata.js
vendored
Normal file
File diff suppressed because one or more lines are too long
19
assets/js/MathJax/jax/output/CommonHTML/jax.js
vendored
Normal file
19
assets/js/MathJax/jax/output/CommonHTML/jax.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,3 +1,4 @@
|
|||||||
|
<!-- params: mathjax.json -->
|
||||||
<!-- title: Mainline Hero Part 0 - Modern Linux For My Galaxy S7 -->
|
<!-- title: Mainline Hero Part 0 - Modern Linux For My Galaxy S7 -->
|
||||||
|
|
||||||
Ever heard of [PostmarketOS](https://postmarketos.org/)? If not, then here's a short summary:
|
Ever heard of [PostmarketOS](https://postmarketos.org/)? If not, then here's a short summary:
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
|
<div class="horizontal-center">
|
||||||
<div class="post-list-item">
|
<div class="post-list-item">
|
||||||
<h3><a class="post-title" href="/{{ slug }}.html">{{ title }}</a></h3>
|
<h2><a class="post-title" href="/{{ slug }}.html">{{ title }}</a></h2>
|
||||||
|
|
||||||
<p><b>> {{ date }}</b></p>
|
<p><b>> {{ date }}</b></p>
|
||||||
|
|
||||||
<p class="post-summary">
|
<p class="post-summary">
|
||||||
<div class="quote">
|
<div class="quote text">
|
||||||
{{ summary }}...
|
{{ summary }}...
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
<div class="horizontal">
|
<div class="post-list">
|
||||||
|
<div class="vertical">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="{{ page_assets }}/css/main.css" />
|
<link rel="stylesheet" href="{{ page_assets }}/css/main.css" />
|
||||||
<link rel="stylesheet" href="/assets/css/blog.css" />
|
<link rel="stylesheet" href="/assets/css/blog.css" />
|
||||||
|
{{ mathjax_include }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1><center><a class="page-title" href="/">papatutuwawa@home:~$</a></center></h1>
|
<h1><center><a class="page-title" href="/">papatutuwawa@home:~$</a></center></h1>
|
||||||
@ -25,10 +26,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="vertical">
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
@ -36,7 +35,8 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<center>
|
<center>
|
||||||
Created by <i>PapaTutuWawa</i> with <3 using
|
Created by <i>PapaTutuWawa</i> with <3 using
|
||||||
<a href="https://github.com/google/roboto">Roboto</a> and
|
<a href="https://github.com/google/roboto">Roboto</a>,
|
||||||
|
<a href="https://github.com/RedHatOfficial/Overpass">Overpass</a> and
|
||||||
<a href="https://github.com/sunainapai/makesite">makesite</a>
|
<a href="https://github.com/sunainapai/makesite">makesite</a>
|
||||||
</center>
|
</center>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
<article>
|
<article>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
<p>// Posted {{ date }}</p>
|
||||||
|
|
||||||
|
{{ mathjax_warning }}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
4
mathjax.json
Normal file
4
mathjax.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"mathjax_include": "<script type='text/javascript' async src='/assets/js/MathJax/MathJax.js?config=TeX-AMS_CHTML'></script>\n<script type='text/x-mathjax-config'>\nMathJax.Hub.Config({'CommonHTML': {scale: 100}, tex2jax: {inlineMath: [['$','$']]}});</script>",
|
||||||
|
"mathjax_warning": "<div class='quote'>NOTE: This post uses the JavaScript library MathJax to render math equations</div>"
|
||||||
|
}
|
@ -7,5 +7,7 @@
|
|||||||
"mastodon_url": "https://fosstodon.org/@polynomdivision",
|
"mastodon_url": "https://fosstodon.org/@polynomdivision",
|
||||||
"email_gpg_url": "https://pki.polynom.me/pubkeys/papatutuwawa.pub",
|
"email_gpg_url": "https://pki.polynom.me/pubkeys/papatutuwawa.pub",
|
||||||
"email_user": "papatutuwawa",
|
"email_user": "papatutuwawa",
|
||||||
"email_domain": "polynom.me"
|
"email_domain": "polynom.me",
|
||||||
|
"mathjax_include": "",
|
||||||
|
"mathjax_warning": ""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user