symposion_app/pinaxcon/templates/cms_pages/news_index_page.html
Christopher Neugebauer fdfe3c7045 Wagtail integration (#17)
* Adds basic wagtail app to the website

* Renames lca_website to cms_pages for clarity; re-instates pinax-boxes until we remove them from the templates

* OOPS

* Just Enough Wagtail

* Removes the template view homepage from urls.py

* OOPS

* Makes the home page use a stream field

* Removes an irrelevant migration that I accidentally introduced.
2016-06-22 10:07:27 +10:00

35 lines
783 B
HTML

{% extends "site_base.html" %}
{% 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 %}
<h1>{{ page.title }}</h1>
{% if page.main_image %}
{% image page.main_image width-400 %}
{% endif %}
<p class="meta">{{ page.date }}</p>
<div class="intro">{{ page.intro }}</div>
{% if page.get_children.specific %}
<ul>
{% for item in page.get_children.specific %}
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% endblock %}