2016-09-18 10:40:55 +00:00
|
|
|
|
{% extends "cms_pages/abstract_content_page.html" %}
|
2016-06-22 00:07:27 +00:00
|
|
|
|
|
2016-06-26 22:01:42 +00:00
|
|
|
|
{% load staticfiles %}
|
2016-06-22 00:07:27 +00:00
|
|
|
|
{% load wagtailcore_tags %}
|
|
|
|
|
{% load wagtailimages_tags %}
|
2016-09-18 10:40:55 +00:00
|
|
|
|
{% load lca2017_tags %}
|
2016-06-22 00:07:27 +00:00
|
|
|
|
|
|
|
|
|
{% load sitetree %}
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
|
|
{% block head_title %}{{ page.title }}{% endblock %}
|
2016-09-18 10:40:55 +00:00
|
|
|
|
{% block body_class %}template-news-index{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block inset_image_base %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% comment %}We use panels here, so don't need to wrap in a text block{% endcomment %}
|
|
|
|
|
{% block content_base %}
|
|
|
|
|
{% if page.child_pages %}
|
|
|
|
|
{% for item in page.child_pages %}
|
|
|
|
|
<div class="panel panel__compact">
|
|
|
|
|
<div class="panel--content">
|
|
|
|
|
<div class="panel--1-3">
|
|
|
|
|
<div class="portrait">
|
|
|
|
|
{% image item.portrait_image width-640 as portrait_image %}
|
|
|
|
|
<div style="background-image: url('{{ portrait_image.url }}');" class="portrait--img"></div>
|
2016-06-26 22:01:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-09-18 10:40:55 +00:00
|
|
|
|
<div class="panel--2-3">
|
|
|
|
|
<h2>{{ item.title }}</h2>
|
|
|
|
|
<p class="lede"><em>{{ item.date|date:"j F Y" }}</em> – {{ item.intro }}</p>
|
|
|
|
|
<a href="{{ item.url }}" class="btn">Read more</a>
|
|
|
|
|
</div>
|
2016-06-26 22:01:42 +00:00
|
|
|
|
</div>
|
2016-07-19 21:31:13 +00:00
|
|
|
|
</div>
|
2016-09-18 10:40:55 +00:00
|
|
|
|
{% endfor %}
|
|
|
|
|
<div class="panel panel__compact"></div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<div class="panel panel__compact">
|
|
|
|
|
<div class="panel--content">
|
|
|
|
|
<h3>Subscribe</h3>
|
|
|
|
|
<p><a class="btn" href="rss">View as RSS</a></p>
|
2016-07-19 21:31:13 +00:00
|
|
|
|
</div>
|
2016-09-18 10:40:55 +00:00
|
|
|
|
</div>
|
2016-06-22 00:07:27 +00:00
|
|
|
|
{% endblock %}
|