Files
blog-eleventy-indiekit/_includes/components/sections/cv-education.njk
Ricardo ec02afb611 fix: split education and languages into separate sections
cv-education.njk no longer renders languages — use the standalone
cv-languages section instead.
2026-02-20 16:10:15 +01:00

32 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{#
CV Education Section
Data fetched from /cv/data.json via homepage plugin
#}
{% set hasEducation = cv and cv.education and cv.education.length %}
{% if hasEducation %}
<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" }}
</h2>
<div class="space-y-3">
{% for item in cv.education %}
{% if not filterType or item.educationType == filterType or not item.educationType %}
<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.startDate %} &middot; {{ item.startDate }}{% if item.endDate %} {{ item.endDate }}{% else %} Present{% endif %}{% elif 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>
{% endif %}
{% endfor %}
</div>
</section>
{% endif %}