diff options
author | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
commit | be772f40c42711de54a3331db2781b1511acba9d (patch) | |
tree | 0808a7750d3c1055b0e86071c219d872775b1f92 /templates/post-page.html | |
parent | 3ae5ecf803ed2d4ece2c9da6d91aae0f075c5b0c (diff) |
change to zola
Diffstat (limited to 'templates/post-page.html')
-rw-r--r-- | templates/post-page.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/post-page.html b/templates/post-page.html new file mode 100644 index 0000000..894a27d --- /dev/null +++ b/templates/post-page.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} + +{% block title %} +<title>{{ page.title }} | {{ config.title }}</title> +{% endblock %} + +{% block content %} +<p> + <div class="title_postpage">{{ page.title }}</div> +</p> +<p> + <div class="date_postpage">{{ page.date }}</div> + <div class="taxonomies_postpage"> + {% if page.taxonomies.categories %} + {% for category in page.taxonomies.categories %} + <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a> + {% endfor %} + {% endif %} + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} +  <a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a> + {% endfor %} + {% endif %} + </div> +</p> + +<p> + {{ page.content | safe }} +</p> + +{% if page.extra.math %} +<script> + MathJax = { + tex: { + inlineMath: [['$', '$'], ['\\(', '\\)']] + } + }; +</script> +<script type="text/javascript" async + src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"> +</script> +{% endif %} + +{% endblock content %} |