allow hiding of list in category view
This commit is contained in:
parent
88a92c674d
commit
10012c0c52
1 changed files with 22 additions and 20 deletions
|
@ -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 %}
|
||||
|
|
Reference in a new issue