Files
indiekit-blog/_includes/components/sections/cv-languages.njk
Ricardo 3bf0e78f74 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
2026-02-20 13:11:37 +01:00

22 lines
796 B
Plaintext

{#
CV Languages Section
Data fetched from /cv/data.json via homepage plugin
#}
{% if cv and cv.languages and cv.languages.length %}
<section class="mb-8 sm:mb-12" id="languages">
<h2 class="text-xl sm:text-2xl font-bold text-surface-900 dark:text-surface-100 mb-4 sm:mb-6">
{{ section.config.title or "Languages" }}
</h2>
<div class="flex flex-wrap gap-3">
{% for lang in cv.languages %}
<div class="flex items-center gap-2 px-3 py-1.5 bg-white dark:bg-surface-800 rounded-full border border-surface-200 dark:border-surface-700">
<span class="font-medium text-sm text-surface-900 dark:text-surface-100">{{ lang.name }}</span>
<span class="text-xs text-surface-500 capitalize">{{ lang.level }}</span>
</div>
{% endfor %}
</div>
</section>
{% endif %}