-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpost.shtml
More file actions
18 lines (18 loc) · 824 Bytes
/
post.shtml
File metadata and controls
18 lines (18 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<extend template="content.shtml">
<head id="head">
<ctx :if="$page.custom.getOr('math', false)">
<link href="https://cdn.bootcdn.net/ajax/libs/KaTeX/0.15.2/katex.min.css" crossorigin="anonymous" rel="stylesheet">
<script
defer
src="https://cdn.bootcdn.net/ajax/libs/KaTeX/0.15.2/katex.min.js"
crossorigin="anonymous"
></script>
<script defer src="https://cdn.bootcdn.net/ajax/libs/KaTeX/0.15.2/contrib/auto-render.min.js" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
</ctx>
<ctx :if="$page.custom.getOr('mermaid', false)">
<script defer src="https://cdn.bootcdn.net/ajax/libs/mermaid/8.14.0/mermaid.min.js" onload="mermaid.initialize({startOnLoad:true});"></script>
</ctx>
</head>
<body id="body">
<div :html="$page.content()"></div>
</body>