4f106a0cd4
* Adds inset_illustration as a drop-down of svg data rather than as an uploady thing. * Adds external link types to the homepage models * Migrations * Initial site template with our new shiny templates * Moves all lca2017-specific assets to lca2017 subdirectory; symlinks from dist * Reflects changes in site_base * Deletes most of new assets in dist/ * WIP home page * Adds external link list support * Adds white-right panel type to the home page * Removes an oops * Adds copyright text to the site. * Updates the remaining illustrations to be more compact. * Adds illustration field to content_page, and adds fields into the news page. * News index page * News page is done! * Formats the dates properly * Commits migrations * Optimises SVG files * better logo * oops * Removes margin on logo. * Optimises svgs, and uses tania’s originals * One more
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{% extends "site_base.html" %}
|
||
|
||
{% load staticfiles %}
|
||
{% load wagtailcore_tags %}
|
||
{% load wagtailimages_tags %}
|
||
|
||
{% load sitetree %}
|
||
{% load i18n %}
|
||
|
||
{% block body_class %}template-blogpage{% endblock %}
|
||
|
||
{% block head_title %}{{ page.title }}{% endblock %}
|
||
|
||
{% block body %}
|
||
{% block content %}
|
||
{% include "cms_pages/content_page_header_panel.html" %}
|
||
|
||
{% 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>
|
||
</div>
|
||
</div>
|
||
<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>
|
||
</div>
|
||
</div>
|
||
{% endfor %}
|
||
<div class="panel panel__compact"></div>
|
||
{% endif %}
|
||
|
||
{% endblock %}
|
||
{% endblock %}
|