camp/content/templates/latest_content.html
2018-08-21 10:47:35 +00:00

21 lines
663 B
HTML

<div class="large-4 medium-4 columns">
{% include "related.html" with related=content.children.all %}
{% 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 %}
<a href="/{{section|lower}}/index/">All {{ section }}</a>
<br>
<br>
{% endif %}
{% endwith %}
</div>
{% else %}
{% if 0 %}<p>No content.</p>{% endif %}
{% endif %}
</div>