aboutsummaryrefslogtreecommitdiffstats
path: root/ops
diff options
context:
space:
mode:
authorjoshmorel <morel.josh@hotmail.com>2017-04-16 17:33:28 -0400
committerjoshmorel <morel.josh@hotmail.com>2017-04-16 17:44:46 -0400
commitf1a4bba40281fa21816d6619d32136fc6a8f086d (patch)
treedf6810eb32779eb051dd7e06e6655649952b4926 /ops
parent0ebdfd9c8851ba500f7f98664cad56cf44fdcd7e (diff)
downloadpelican-themes-f1a4bba40281fa21816d6619d32136fc6a8f086d.tar.gz
Fix Python 3 unorderable types issue
{% for article in articles | sort %} resulted in: "CRITICAL: unorderable types: Article() < Article()"
Diffstat (limited to 'ops')
-rw-r--r--ops/templates/category.html2
-rw-r--r--ops/templates/tag.html2
-rw-r--r--ops/templates/tags.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/ops/templates/category.html b/ops/templates/category.html
index e5e601a..fb71e3b 100644
--- a/ops/templates/category.html
+++ b/ops/templates/category.html
@@ -9,7 +9,7 @@
</header>
<dl>
<h3>{{ category }}</h3>
- {% for article in articles|sort %}
+ {% for article in articles %}
<dd>
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
</dd>
diff --git a/ops/templates/tag.html b/ops/templates/tag.html
index 0131849..b0f09fb 100644
--- a/ops/templates/tag.html
+++ b/ops/templates/tag.html
@@ -9,7 +9,7 @@
</header>
<dl>
<h3>{{ tag }}</h3>
- {% for article in articles|sort %}
+ {% for article in articles %}
<dd>
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
diff --git a/ops/templates/tags.html b/ops/templates/tags.html
index cbfd61f..b1853ef 100644
--- a/ops/templates/tags.html
+++ b/ops/templates/tags.html
@@ -5,7 +5,7 @@
<section id="tags">
<header class="header">
- {% for tag,articles in tags|sort %}
+ {% for tag,articles in tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>({{ articles|count }})
{% endfor %}
</header>