use bootstrap media instead
This commit is contained in:
parent
b59d829ed3
commit
fa1bdd8f46
1 changed files with 14 additions and 5 deletions
|
@ -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>
|
||||||
|
|
Reference in a new issue