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,11 +31,20 @@
<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">
<a href="/{{ article.url }}"> {% if article.image %}
<h3>{{ article.title }}</h3> <div class="media-left">
</a> <a href="/{{ article.url }}">
<p>{{ article.summary|striptags|e }}</p> <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>
<p>{{ article.summary|striptags|e }}</p>
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>