diff --git a/_includes/components/sections/cv-education.njk b/_includes/components/sections/cv-education.njk index 0550ebc..3ff1ecf 100644 --- a/_includes/components/sections/cv-education.njk +++ b/_includes/components/sections/cv-education.njk @@ -1,28 +1,85 @@ {# - CV Education Section + CV Education Section - collapsible education cards (accordion) Data fetched from /cv/data.json via homepage plugin + Each card gets a distinct color via cycling palette #} {% set hasEducation = cv and cv.education and cv.education.length %} {% if hasEducation %} -
+

{{ section.config.title or "Education" }}

-
+
{% for item in cv.education %} {% if not filterType or item.educationType == filterType or not item.educationType %} -
-

{{ item.degree }}

-

- {{ 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 %} -

- {% if item.description %} -

{{ item.description }}

- {% endif %} + {% set ci = loop.index0 % 8 %} +
+ {# Summary row — always visible, clickable #} + + + {# Detail section — collapsible #} +
+ {% if item.startDate %} +

+ {{ item.startDate }}{% if item.endDate %} – {{ item.endDate }}{% else %} – Present{% endif %} +

+ {% elif item.year %} +

{{ item.year }}

+ {% endif %} + + {% if item.description %} +

{{ item.description }}

+ {% endif %} +
{% endif %} {% endfor %}