generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script type="text/x-mathjax-config"> | ||
MathJax.Hub.Config({ | ||
TeX: { | ||
equationNumbers: { | ||
autoNumber: "AMS" | ||
} | ||
}, | ||
extensions: ["tex2jax.js"], | ||
jax: ["input/TeX", "output/HTML-CSS"], | ||
tex2jax: { | ||
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | ||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | ||
processEscapes: true, | ||
"HTML-CSS": { fonts: ["TeX"] } | ||
} | ||
}); | ||
MathJax.Hub.Register.MessageHook("Math Processing Error",function (message) { | ||
alert("Math Processing Error: "+message[1]); | ||
}); | ||
MathJax.Hub.Register.MessageHook("TeX Jax - parse error",function (message) { | ||
alert("Math Processing Error: "+message[1]); | ||
}); | ||
</script> | ||
<!-- <script type="text/javascript" src="path-to-MathJax/MathJax.js?config=TeX-AMS_HTML"> | ||
</script> --> | ||
<script | ||
type="text/javascript" | ||
async | ||
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML" | ||
></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
layout: compress | ||
--- | ||
|
||
<!doctype html> | ||
|
||
{% include origin-type.html %} | ||
|
||
{% include lang.html %} | ||
|
||
{% if site.theme_mode %} | ||
{% capture prefer_mode %}data-mode="{{ site.theme_mode }}"{% endcapture %} | ||
{% endif %} | ||
|
||
<!-- `site.alt_lang` can specify a language different from the UI --> | ||
<html lang="{{ page.lang | default: site.alt_lang | default: site.lang }}" {{ prefer_mode }}> | ||
{% include head.html %} | ||
{% include mathjax_support.html %} | ||
<body> | ||
{% include sidebar.html lang=lang %} | ||
|
||
<div id="main-wrapper" class="d-flex justify-content-center"> | ||
<div class="container d-flex flex-column px-xxl-5"> | ||
{% include topbar.html lang=lang %} | ||
|
||
<div class="row flex-grow-1"> | ||
<main aria-label="Main Content" class="col-12 col-lg-11 col-xl-9 px-md-4"> | ||
{% if layout.refactor or layout.layout == 'default' %} | ||
{% include refactor-content.html content=content lang=lang %} | ||
{% else %} | ||
{{ content }} | ||
{% endif %} | ||
</main> | ||
|
||
<!-- panel --> | ||
<aside aria-label="Panel" id="panel-wrapper" class="col-xl-3 ps-2 mb-5 text-muted"> | ||
<div class="access"> | ||
{% include_cached update-list.html lang=lang %} | ||
{% include_cached trending-tags.html lang=lang %} | ||
</div> | ||
|
||
{% for _include in layout.panel_includes %} | ||
{% assign _include_path = _include | append: '.html' %} | ||
{% include {{ _include_path }} lang=lang %} | ||
{% endfor %} | ||
</aside> | ||
</div> | ||
|
||
<div class="row"> | ||
<!-- tail --> | ||
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-md-4"> | ||
{% for _include in layout.tail_includes %} | ||
{% assign _include_path = _include | append: '.html' %} | ||
{% include {{ _include_path }} lang=lang %} | ||
{% endfor %} | ||
|
||
{% include_cached footer.html lang=lang %} | ||
</div> | ||
</div> | ||
|
||
{% include_cached search-results.html lang=lang %} | ||
</div> | ||
|
||
<aside aria-label="Scroll to Top"> | ||
<button id="back-to-top" type="button" class="btn btn-lg btn-box-shadow"> | ||
<i class="fas fa-angle-up"></i> | ||
</button> | ||
</aside> | ||
</div> | ||
|
||
<div id="mask"></div> | ||
|
||
{% if site.pwa.enabled %} | ||
{% include_cached notification.html lang=lang %} | ||
{% endif %} | ||
|
||
<!-- JavaScripts --> | ||
{% include js-selector.html lang=lang %} | ||
|
||
{% include_cached search-loader.html lang=lang %} | ||
</body> | ||
</html> |