feat: add KaTeX support

This commit is contained in:
welpo
2023-04-15 19:55:57 +02:00
parent 7a1bb1d04c
commit f9335b3fa4
66 changed files with 35 additions and 5 deletions

View File

@@ -21,6 +21,12 @@
{% endblock main_content %}
</div>
{% include "partials/footer.html" %}
{% if page.extra.katex and page.extra.katex == true %}
<link rel="stylesheet" href="{{ get_url(path='katex.min.css', trailing_slash=false) | safe }}">
<script defer src="{{ get_url(path='js/katex.min.js', trailing_slash=false) | safe }}"></script>
{% endif %}
</body>
</html>