From fa1bdd8f46dd50560907ee32fbbc3506b5904fa8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 8 Aug 2016 21:09:08 +0100 Subject: [PATCH] use bootstrap media instead --- theme/templates/category.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/theme/templates/category.html b/theme/templates/category.html index 34ed237..8b4f178 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -31,11 +31,20 @@
{% for article in articles|sort(attribute="title") %} -
- -

{{ article.title }}

-
-

{{ article.summary|striptags|e }}

+
+ {% if article.image %} +
+ + + +
+ {% endif %} +
+ +

{{ article.title }}

+
+

{{ article.summary|striptags|e }}

+
{% endfor %}