1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-website-2018-spike/templates/pages/section_index_page.html

36 lines
1.2 KiB
HTML
Raw Normal View History

2018-07-26 09:22:07 +01:00
{% extends "base.html" %}
2018-07-27 20:43:28 +01:00
{% load static wagtailimages_tags %}
2018-07-26 09:22:07 +01:00
{% block content %}
<div id="main">
<div class="container">
2018-07-27 20:43:28 +01:00
{% include "common/content.html" %}
2018-07-26 09:22:07 +01:00
2018-07-27 20:43:28 +01:00
{% if page.body %}
<hr />
{% endif %}
2018-07-26 09:22:07 +01:00
2018-07-27 20:43:28 +01:00
{% for child in page.get_children.specific %}
<div class="media list-page-item mb-3">
<div class="d-none d-md-block align-self-center img-wrapper mr-3">
{% if child.image %}
<a href="{{ child.url }}">
{% image child.image width-300 as photo %}
<div class="image" data-image='{{ photo.url }}'></div>
</a>
{% endif %}
</div>
<div class="media-body">
<a href="{{ child.url }}">
<h5 class="my-0">{{ child.title }}</h5>
</a>
<small>{% include "common/content_details.html" with page=child %}</small>
<p>{{ child.get_short_body }}</p>
</div>
2018-07-26 09:22:07 +01:00
</div>
2018-07-27 20:43:28 +01:00
{% endfor %}
2018-07-26 09:22:07 +01:00
</div>
</div>
{% endblock %}