1
Fork 0

allow hiding of list in category view

This commit is contained in:
Jake Howard 2016-06-26 21:46:02 +01:00
parent 88a92c674d
commit 10012c0c52
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -21,33 +21,35 @@
</div>
</div>
</section>
{% if category.page %}
{% if category.page.content %}
<section>
<div class="container">
{{ category.page.content }}
</div>
</section>
{% endif %}
<section class="no-padding">
<div class="container-fluid">
<div class="row no-gutter">
{% for article in dates %}
<div class="col-lg-4 col-sm-6">
<a href="#" class="portfolio-box">
<div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
<div class="project-category">
{{ article.title }}
</div>
<div class="project-name">
{{ article.summary|striptags|e }}
{% if not category.page.hide_list %}
<section class="no-padding">
<div class="container-fluid">
<div class="row no-gutter">
{% for article in dates %}
<div class="col-lg-4 col-sm-6">
<a href="#" class="portfolio-box">
<div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
<div class="project-category">
{{ article.title }}
</div>
<div class="project-name">
{{ article.summary|striptags|e }}
</div>
</div>
</div>
</div>
</a>
</div>
{% endfor %}
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
</section>
{% endif %}
{% endblock %}