camp/content/templates/section_index.html

33 lines
1011 B
HTML
Raw Permalink Normal View History

2017-12-18 12:54:04 +00:00
{% extends 'base.html' %}
{% block content %}
{% include "featured.html" %}
<div class="large-4 medium-4 columns">
2017-12-23 11:22:39 +00:00
{% if content %}
2017-12-18 12:54:04 +00:00
<h4 class="sidebar-h4"> {{ section }} </h4>
2017-12-23 11:06:13 +00:00
<div class="row">
{% for content in content %}
<div class="row right-items">
2017-12-18 12:54:04 +00:00
{% if content.image_url %}
2017-12-23 11:06:13 +00:00
<div class="small-6 columns">
<img src="{{ content.image_url }}">
</div>
2017-12-18 12:54:04 +00:00
{% endif %}
2017-12-23 11:06:13 +00:00
<div class="small-6 columns">
<a href="{{ content.get_absolute_url }}/" class="sidebar-title">{{ content.title }}</a>
2017-12-18 14:29:17 +00:00
<p> {{content.formatted_teaser}} </p>
2017-12-23 11:06:13 +00:00
</div>
</div>
{% endfor %}
2017-12-23 11:22:39 +00:00
{% if more_content %}
2018-08-21 10:43:37 +00:00
<a href="/{{section|lower}}/index/">All {{ section }}</a>
<br>
<br>
2017-12-23 11:22:39 +00:00
{% endif %}
2017-12-18 12:54:04 +00:00
</div>
2017-12-23 11:22:39 +00:00
{% endif %}
2017-12-18 12:54:04 +00:00
</div>
{% endblock %}