feat: update interests templates for category-based data model

Interests are now grouped by category (matching skills pattern).
Updated cv-interests.njk to iterate categories, cv.js fallback to {},
and cv.njk hasCvData check to include interests.
This commit is contained in:
Ricardo
2026-02-25 14:56:11 +01:00
parent 116ac63f5f
commit ab31e080bb
3 changed files with 20 additions and 11 deletions

3
cv.njk
View File

@@ -10,7 +10,8 @@ pagefindIgnore: true
{% set hasCvData = (cv.experience and cv.experience.length) or
(cv.projects and cv.projects.length) or
(cv.skills and ((cv.skills or {}) | dictsort | length)) %}
(cv.skills and ((cv.skills or {}) | dictsort | length)) or
(cv.interests and ((cv.interests or {}) | dictsort | length)) %}
{% if hasCvData %}