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

{% block title %}{{ page.title }} | {{ super() }}{% endblock %}

{% block main %}
  {%- if not page.extra.menu %}
    <h1>{{ page.title }}</h1>
    {%- if page.date %}
      <p>
        <time datetime='{{ page.date | date(format='%+') }}' pubdate>
          {{- page.date | date(format=config.extra.date_format) -}}
        </time>
      </p>
    {%- endif %}
  {%- endif %}
  <main id="content">
    {{ page.content | trim | indent | safe }}
  </main>
  <ul class="tags">
    {%- if page.taxonomies %}
      {%- for name, taxon in page.taxonomies %}
        {{ name | capitalize }}:
        {%- for item in taxon %}
          <li><a href="{{ get_taxonomy_url(kind=name, name=item) }}">#{{ item }}</a></li>
        {%- endfor %}
      {%- endfor %}
    {%- endif %}
  </ul>
{% endblock %}