aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/templates/resources/resources_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/templates/resources/resources_list.html b/pydis_site/templates/resources/resources_list.html
index 77d25ace..96b128be 100644
--- a/pydis_site/templates/resources/resources_list.html
+++ b/pydis_site/templates/resources/resources_list.html
@@ -27,11 +27,11 @@
<h1>{{ category_info.name }}</h1>
<p>{{ category_info.description|safe }}</p>
<div>
- {% for resource in resources %}
+ {% for resource in resources|dictsort:"position" %}
{% include "resources/resource_box.html" %}
{% endfor %}
- {% for subcategory in subcategories %}
+ {% for subcategory in subcategories|dictsort:"category_info.position" %}
<h2 id="{{ subcategory.category_info.raw_name }}">
<a href="{% url "resources:resources" type=category_info.raw_name %}#{{ subcategory.category_info.raw_name }}">
{{ subcategory.category_info.name }}
@@ -39,7 +39,7 @@
</h2>
<p>{{ subcategory.category_info.description|safe }}</p>
- {% for resource in subcategory.resources %}
+ {% for resource in subcategory.resources|dictsort:"position" %}
{% with category_info=subcategory.category_info %}
{% include "resources/resource_box.html" %}
{% endwith %}