Specify sort order of projects
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user