feat: preserve custom order for skills and interests sections

Remove dictsort from for-loops so categories render in the order
set by the admin UI drag-drop reorder, instead of alphabetically.
This commit is contained in:
Ricardo
2026-02-25 15:57:42 +01:00
parent ab31e080bb
commit cd7083eb9a
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
{% for category, items in cv.interests | dictsort %}
{% for category, items in cv.interests %}
{% if not filterType or (cv.interestTypes and cv.interestTypes[category] == filterType) or not cv.interestTypes or not cv.interestTypes[category] %}
<div class="p-4 bg-white dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700">
<h3 class="font-semibold text-sm uppercase tracking-wide text-surface-600 dark:text-surface-400 mb-2">

View File

@@ -10,7 +10,7 @@
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
{% for category, items in cv.skills | dictsort %}
{% for category, items in cv.skills %}
{% if not filterType or (cv.skillTypes and cv.skillTypes[category] == filterType) or not cv.skillTypes or not cv.skillTypes[category] %}
<div class="p-4 bg-white dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700">
<h3 class="font-semibold text-sm uppercase tracking-wide text-surface-600 dark:text-surface-400 mb-2">