1
Fork 0

simplify category page

This commit is contained in:
Jake Howard 2016-07-31 22:29:22 +01:00
parent 1591c5a76a
commit 1bec1338ba
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -27,27 +27,17 @@
</section> </section>
{% endif %} {% endif %}
{% if not category.page.hide_list %} {% if not category.page.hide_list %}
<section class="no-padding"> <section>
<div class="container-fluid"> <div class="container">
<div class="row no-gutter"> <div class="row no-gutter">
{% for article in dates %} {% for article in dates %}
<div class="col-lg-4 col-sm-6"> <div class="media">
{% if article.image %} <div class="media-body">
<a href="/{{ article.url }}" class="portfolio-box image" data-image="{{ article.image }}"> <a href="{{ article.url }}">
{% else %} <h3 class="media-heading">{{ article.title }}</h3>
<a href="/{{ article.url }}" class="portfolio-box show" > </a>
{% endif %} <p>{{ article.summary|striptags|e }}</p>
<div class="portfolio-box-caption"> </div>
<div class="portfolio-box-caption-content">
<div class="project-category">
{{ article.title }}
</div>
<div class="project-name">
{{ article.summary|striptags|e }}
</div>
</div>
</div>
</a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>