/
page.html
35 lines (31 loc) · 967 Bytes
/
page.html
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
{% extends 'layout/inner_page.html' %}
{% load static %}
{% load pages_extras %}
{% block content %}
{% breadcrumbs page %}
<div class="row">
<div class="col-sm-3 p-article-sidebar">
{% accordion %}
</div>
<div class="col-sm-9 right-col">
<h1>{{ page.display.h1 }}</h1>
{% comment %}
@todo #890:60m Remove date_published outside of base template.
Pages whose are needed at date_pubslished should use it explicitly.
{% endcomment %}
{% if page.type != 'navigation' and page.date_published %}
<p class="date-pub-article">
{{ page.date_published|date:'d.m.Y' }}
</p>
{% endif %}
{% autoescape off %}
{% if page.content %}
{{ page.content }}
{% endif %}
{% endautoescape %}
{% if page.is_section %}
{% include 'pages/pages.html' with pages=page.children.all only %}
{% endif %}
</div>
</div>
{% endblock %}