website/templates/macros.html

8 lines
423 B
HTML
Raw Permalink Normal View History

2022-09-19 16:41:09 +00:00
{%macro katex() %}
<link rel="stylesheet" href="/katex/katex.min.css"/>
<script defer src="/katex/katex.min.js"></script>
<script defer src="/katex/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {delimiters: [{left:'$$',right:'$$',display:true},{left:'$',right:'$',display:false}]});"></script>
2022-09-19 16:41:09 +00:00
{%endmacro katex %}
{%macro langurl() %}{% if lang != "en" %}{{lang}}/{% endif %}{%endmacro langurl %}