aboutsummaryrefslogtreecommitdiffstats
path: root/uikit/templates
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2018-09-24 16:27:10 +0200
committerMatěj Cepl <mcepl@cepl.eu>2018-09-24 16:27:10 +0200
commit22bb2cfe6986c79449e64b32821e9c3e036200dc (patch)
tree19215f96482cc6c8862445f67b45ad34bda1d43d /uikit/templates
parent5d3f1eed080e97d395fdba90b5850fbfaef057a6 (diff)
downloadpelican-themes-22bb2cfe6986c79449e64b32821e9c3e036200dc.tar.gz
Remove two more articles|sort constructs.
This is the issue getpelican/pelican-themes#483 which was supposed to be fixed by #506 (and commit f1a4bba40281fa21816d6619d32136fc6a8f086d), but two occurences of the problem were missed. Basically, as https://github.com/getpelican/pelican/issues/1591#issuecomment-70272693 says: > For future reference: Don't use sort in templates on articles.
Diffstat (limited to 'uikit/templates')
-rw-r--r--uikit/templates/articles.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/uikit/templates/articles.html b/uikit/templates/articles.html
index 8454395..17f9e3c 100644
--- a/uikit/templates/articles.html
+++ b/uikit/templates/articles.html
@@ -12,7 +12,7 @@
<h1>{{'all the articles'|capitalize}}</h1>
<ul>
-{% for article in articles|sort %}
+{% for article in articles %}
<li><a class="{% if CAPITALIZE_HEADINGS %}capitalize{% endif %}" href="/{{ article.url }}">{{ article.title }}</a></li>
{% endfor %}
</ul>