about summary refs log tree commit diff stats
path: root/templates/page.html
blob: f32a6fc8c16178189bb9a5c57e0ffdb69331e90a (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
{% extends "base.html" %}

{% block title %}
{{- page.title -}}
{% endblock %}

{% block main %}
<article class="h-entry">
  <header>
    <h1><span class="title p-name">{{ page.title }}</span></h1>
    <time class="dt-published" datetime="{{ page.date | date(format='%+') }}">{{ page.date | date(format="%F") }}</time>
    <p class="terms">
      {%- if page.taxonomies %}
      {%- for name, taxon in page.taxonomies %}
      {{ name | capitalize }}:
      {%- for item in taxon %}
      <a class="p-category" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
      {%- endfor %}
      {%- endfor %}
      {%- endif %}
    </p>
  </header>

  <main class="e-content">
    {{ page.content | safe }}
  </main>
</article>
{% endblock %}