diff options
Diffstat (limited to 'template')
| -rwxr-xr-x | template/_includes.html | 6 | ||||
| -rw-r--r-- | template/_libraries.html | 11 | ||||
| -rwxr-xr-x | template/post.html | 2 | ||||
| -rwxr-xr-x | template/style.css | 4 |
4 files changed, 17 insertions, 6 deletions
diff --git a/template/_includes.html b/template/_includes.html index 4996940..8627609 100755 --- a/template/_includes.html +++ b/template/_includes.html | |||
| @@ -1,9 +1,3 @@ | |||
| 1 | <!-- user code --> | 1 | <!-- user code --> |
| 2 | 2 | ||
| 3 | <script src="/script.js"></script> | 3 | <script src="/script.js"></script> |
| 4 | |||
| 5 | <!-- code highlighting --> | ||
| 6 | |||
| 7 | <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/github.min.css"> | ||
| 8 | <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"></script> | ||
| 9 | <script>hljs.initHighlightingOnLoad();</script> | ||
diff --git a/template/_libraries.html b/template/_libraries.html new file mode 100644 index 0000000..1a7b911 --- /dev/null +++ b/template/_libraries.html | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | <!-- katex math library --> | ||
| 2 | |||
| 3 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous"> | ||
| 4 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script> | ||
| 5 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | ||
| 6 | |||
| 7 | <!-- code highlighting --> | ||
| 8 | |||
| 9 | <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/github.min.css"> | ||
| 10 | <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"></script> | ||
| 11 | <script>hljs.initHighlightingOnLoad();</script> | ||
diff --git a/template/post.html b/template/post.html index 00be220..512fff6 100755 --- a/template/post.html +++ b/template/post.html | |||
| @@ -63,6 +63,8 @@ | |||
| 63 | 63 | ||
| 64 | {{template "_includes.html"}} | 64 | {{template "_includes.html"}} |
| 65 | 65 | ||
| 66 | {{template "_libraries.html"}} | ||
| 67 | |||
| 66 | </body> | 68 | </body> |
| 67 | 69 | ||
| 68 | </html> | 70 | </html> |
diff --git a/template/style.css b/template/style.css index d4832b1..8152dab 100755 --- a/template/style.css +++ b/template/style.css | |||
| @@ -313,6 +313,10 @@ article strong { | |||
| 313 | font-weight: 600; | 313 | font-weight: 600; |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | article .katex-display { | ||
| 317 | margin: 3em 0 !important; | ||
| 318 | } | ||
| 319 | |||
| 316 | /* audio */ | 320 | /* audio */ |
| 317 | 321 | ||
| 318 | audio { | 322 | audio { |
