fix: show untyped CV items in both work and personal views

Items without a type field (existing data before type feature was added)
were only appearing in "personal" filtered views. Since the /cv/ page uses
work-only variants, all existing untyped data was hidden. Changed filtering
so untyped items appear in both work and personal views.

Also guard cv.skills dictsort in cv.njk against undefined.
This commit is contained in:
Ricardo
2026-02-20 13:55:52 +01:00
parent f2cc855f3d
commit a54600b003
5 changed files with 5 additions and 5 deletions

2
cv.njk
View File

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