1
Fork 0

use bootstrap media instead

This commit is contained in:
Jake Howard 2016-08-08 21:09:08 +01:00
parent b59d829ed3
commit fa1bdd8f46
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -31,12 +31,21 @@
<div class="container"> <div class="container">
<div class="row no-gutter"> <div class="row no-gutter">
{% for article in articles|sort(attribute="title") %} {% for article in articles|sort(attribute="title") %}
<div class="category-item"> <div class="media categories">
{% if article.image %}
<div class="media-left">
<a href="/{{ article.url }}"> <a href="/{{ article.url }}">
<h3>{{ article.title }}</h3> <img class="media-object" src="{{ article.image }}">
</a>
</div>
{% endif %}
<div class="media-body">
<a href="/{{ article.url }}">
<h4 class="media-heading">{{ article.title }}</h4>
</a> </a>
<p>{{ article.summary|striptags|e }}</p> <p>{{ article.summary|striptags|e }}</p>
</div> </div>
</div>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>