mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
cv-education.njk no longer renders languages — use the standalone cv-languages section instead.
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
{#
|
||
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 %} · {{ item.location }}{% endif %}
|
||
{% if item.startDate %} · {{ item.startDate }}{% if item.endDate %} – {{ item.endDate }}{% else %} – Present{% endif %}{% elif item.year %} · {{ 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 %}
|