flex/templates/page.html

30 lines
838 B
HTML
Raw Permalink Normal View History

2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
2017-04-22 08:41:39 +02:00
{% block meta %}
{{ super() }}
{% if page.translations -%}
<link rel="alternate" href="{{ SITEURL }}/{{ page.url }}" hreflang="{{ page.lang }}" />
{% for p in page.translations %}
<link rel="alternate" href="{{ SITEURL }}/{{ p.url }}" hreflang="{{ p.lang }}" />
{% endfor %}
{% endif %}
{% endblock %}
{% block title %} &ndash; {{ page.title|striptags|escape }}{% endblock %}
2015-07-19 02:04:01 +02:00
{% block content %}
<article class="single">
2015-07-19 02:04:01 +02:00
<header>
2017-04-23 00:34:29 +02:00
{% import 'partial/translations.html' as translations with context %}
{{ translations.translations_for(page) }}
2015-07-23 04:02:15 +02:00
<h1 id="{{ page.slug }}">{{ page.title }}</h1>
2015-07-19 02:04:01 +02:00
</header>
<div>
{% block before_content %}{% endblock %}
{% block page_content %}{{ page.content }}{% endblock %}
{% block after_content %}{% endblock %}
2015-07-19 02:04:01 +02:00
</div>
</article>
2015-07-21 05:49:51 +02:00
{% endblock %}