camp/content/templates/latest_content.html

21 lines
670 B
HTML
Raw Permalink Normal View History

2017-12-23 11:22:39 +00:00
<div class="large-4 medium-4 columns">
2018-08-22 19:59:40 +00:00
{% include "related.html" with related=content.related_content.all %}
2017-12-23 11:22:39 +00:00
{% if latest_content_list %}
<h4 class="sidebar-h4">{{section}}</h4>
<div class="row">
{% for content in latest_content_list %}
{% include "preview.html" with content=content %}
{% endfor %}
{% with section|lower|add:'_list' as section_list %}
{% if has_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 %}
{% endwith %}
2017-12-23 11:06:13 +00:00
</div>
2017-12-23 11:22:39 +00:00
{% else %}
{% if 0 %}<p>No content.</p>{% endif %}
{% endif %}
</div>