feat: add filtered section templates for work/personal type distinction

Add thin-wrapper templates for work/personal filtering of CV sections:
- 8 new templates: cv-{experience,education,skills,interests}-{personal,work}.njk
- cv-languages.njk: standalone languages section (split from education)
- homepage-section.njk: 9 new routes for filtered variants
- cv.njk: uses work-only variants for the /cv/ page
- Base templates: filterType support in experience, education, skills, interests
- _data/cv.js: skillTypes and interestTypes fallback fields
This commit is contained in:
Ricardo
2026-02-20 13:11:37 +01:00
parent 334b8fdcf5
commit 3bf0e78f74
16 changed files with 82 additions and 13 deletions

View File

@@ -11,6 +11,7 @@
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
{% for category, items in cv.skills | dictsort %}
{% if not filterType or (cv.skillTypes and cv.skillTypes[category] == filterType) or (filterType == "personal" and (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">
{{ category }}
@@ -23,6 +24,7 @@
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</section>