From 67eecb9f16d74f0d11f2e5d73cf35e91d24da1bf Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 7 Jan 2024 15:11:34 -0700 Subject: [PATCH] Move posts to top on lite mode --- themes/lite/templates/index.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/themes/lite/templates/index.html b/themes/lite/templates/index.html index eda2816..2c1c3b9 100644 --- a/themes/lite/templates/index.html +++ b/themes/lite/templates/index.html @@ -12,6 +12,15 @@ Lead Hardware Engineer at Critical Control, 2016-2018 Electrical Engineer at Opener Aero, 2016-2016 BSc. Electrical Engineering from University of Calgary +Posts + +{% for article in articles_page.object_list if article.category.name == 'Writing' %} +{% if loop.index <= 4 %} +{{ article.title }} +{% endif %} +{% endfor %} +[more] + Projects {% for article in articles_page.object_list|selectattr('category.name', '==', 'Projects')|sort(attribute='order') %} @@ -29,12 +38,3 @@ Creations {% endif %} {% endfor %} [more] - -Writing - -{% for article in articles_page.object_list if article.category.name == 'Writing' %} -{% if loop.index <= 4 %} -{{ article.title }} -{% endif %} -{% endfor %} -[more]