From d4f8915de7041ba8adde70398b26cc649950539f Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Sat, 6 Aug 2016 14:35:55 +0100 Subject: [PATCH] simplify category list more --- theme/static/src/scss/index.scss | 4 ++++ theme/templates/category.html | 14 ++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/theme/static/src/scss/index.scss b/theme/static/src/scss/index.scss index 4c2e372..216f64d 100644 --- a/theme/static/src/scss/index.scss +++ b/theme/static/src/scss/index.scss @@ -65,3 +65,7 @@ p a { background-color: transparentize($brand-orange, 0.2); } } + +.category-item { + padding: 1px 0; +} diff --git a/theme/templates/category.html b/theme/templates/category.html index 86d94e9..ce287d5 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -30,14 +30,12 @@
- {% for article in dates %} -
-
- -

{{ article.title }}

-
-

{{ article.summary|striptags|e }}

-
+ {% for article in articles|sort(attribute="title") %} +
+ +

{{ article.title }}

+
+

{{ article.summary|striptags|e }}

{% endfor %}