Files
indiekit-blog/_includes/components/sections/cv-education.njk
Ricardo d0360dbdf7 feat: add CV section partials for homepage builder
- cv-experience.njk: work history timeline with highlights
- cv-skills.njk: skills grid grouped by category
- cv-education.njk: education cards + language pills
- cv-projects.njk: project cards with status badges and tech tags
- cv-interests.njk: interest tag cloud
- Update homepage-builder.njk to include cv-education and cv-interests

Part of indiekit-endpoint-cv plugin integration (Phase 2).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 16:01:01 +01:00

43 lines
1.7 KiB
Plaintext

{#
CV Education & Languages Section
Data fetched from /cv/data.json via homepage plugin
#}
{% set hasEducation = cv and cv.education and cv.education.length %}
{% set hasLanguages = cv and cv.languages and cv.languages.length %}
{% if hasEducation or hasLanguages %}
<section class="mb-8 sm:mb-12" id="education">
<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 "Education & Languages" }}
</h2>
{% if hasEducation %}
<div class="space-y-3 mb-6">
{% for item in cv.education %}
<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-surface-900 dark:text-surface-100">{{ item.degree }}</h3>
<p class="text-sm text-surface-600 dark:text-surface-400">
{{ item.institution }}{% if item.location %} &middot; {{ item.location }}{% endif %}{% if item.year %} &middot; {{ item.year }}{% endif %}
</p>
{% if item.description %}
<p class="text-sm text-surface-700 dark:text-surface-300 mt-1">{{ item.description }}</p>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% if hasLanguages %}
<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>
{% endif %}
</section>
{% endif %}