trimill.xyz/flaskr/templates/_blog.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2022-06-23 05:58:54 +00:00
{% extends "/_base.html" %}
{% block head %}
<!-- KaTex -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
2024-05-12 23:21:34 +00:00
<link rel="stylesheet" href="/static/pygments.css">
2022-06-23 05:58:54 +00:00
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"></script>
<script>
2024-05-12 23:21:34 +00:00
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{left: '$', right: '$', display: false},
{left: '\\[', right: '\\]', display: true},
],
throwOnError : false
});
});
2022-06-23 05:58:54 +00:00
</script>
<style>
img {
2024-05-12 23:21:34 +00:00
display: block;
max-width: 80%;
margin-left: auto;
margin-right: auto;
2022-06-23 05:58:54 +00:00
}
2022-10-26 02:54:05 +00:00
p {
2024-05-12 23:21:34 +00:00
margin-top: 24px;
margin-bottom: 24px;
2022-10-26 02:54:05 +00:00
}
2022-06-23 05:58:54 +00:00
</style>
{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<p class="faded">{{ date.isoformat() }}</p>
<article>
{{ content | safe }}
</article>
2022-10-26 02:54:05 +00:00
{% endblock %}