summaryrefslogtreecommitdiff
path: root/templates/post-page.html
blob: 894a27daf1d1d4b61c05a6397625f8da5743ba23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 %}
      &emsp;<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 %}