summaryrefslogtreecommitdiff
path: root/themes/simple/templates/page.html
blob: 4096e7a433e12b972b23d95d93b61693eb827753 (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
{% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}

{% block title %}{{ SITENAME|striptags }} - {{ page.title|striptags }}{%endblock%}

{% block head %}
  {{ super() }}

  {% import 'translations.html' as translations with context %}
  {% if translations.entry_hreflang(page) %}
    {{ translations.entry_hreflang(page) }}
  {% endif %}
{% endblock %}

{% block content %}
  <article>
    <header>
      <h2>{{ page.title }}</h2>
    </header>
    {% import 'translations.html' as translations with context %}
    {{ translations.translations_for(page) }}

    {% block page_content %}{{ page.content }}{% endblock page_content %}

    {% if page.modified %}
      <footer>
        <p>
          Last updated: {{ page.locale_modified }}
        </p>
      </footer>
    {% endif %}
  </article>
{% endblock %}