From bcbb94d15b540f00c59cbb35fbfa45433b6c82de Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Tue, 30 Mar 2021 13:06:40 +0300 Subject: Order resources and subcategories in template --- pydis_site/templates/resources/resources_list.html | 6 +++--- 1 file 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 @@
{{ category_info.description|safe }}
{{ subcategory.category_info.description|safe }}
- {% for resource in subcategory.resources %} + {% for resource in subcategory.resources|dictsort:"position" %} {% with category_info=subcategory.category_info %} {% include "resources/resource_box.html" %} {% endwith %} -- cgit v1.2.3