Specify sort order of projects

This commit is contained in:
2023-05-01 15:13:56 -06:00
parent fc5c89f305
commit 6bd413c951
7 changed files with 11 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ BSc. Electrical Engineering from University of Calgary
Projects
{% for article in articles_page.object_list if article.category.name == 'Projects' %}
{% for article in articles_page.object_list|selectattr('category.name', '==', 'Projects')|sort(attribute='order') %}
{% if loop.index <= 4 %}
<a href={{ article.url }}>{{ article.title }}
{% endif %}