Make a reusable ‘content’ template

This is for static content pages and makes sure they always have the
right column widths and sub navigation.
This commit is contained in:
Chris Hill-Scott
2019-06-04 11:20:33 +01:00
parent 77469e0710
commit 399eff7215
13 changed files with 577 additions and 669 deletions

View File

@@ -0,0 +1,21 @@
{% extends "withoutnav_template.html" %}
{% from "components/sub-navigation.html" import sub_navigation %}
{% from "components/page-header.html" import page_header %}
{% block per_page_title %}
{{ content_page_title }}
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
{% if navigation_links %}
<div class="column-one-third">
{{ sub_navigation(navigation_links) }}
</div>
{% endif %}
<div class="column-two-thirds">
{% block content_column_content %}
{% endblock %}
</div>
</div>
{% endblock %}