diff --git a/_includes/components/sections/cv-projects-personal.njk b/_includes/components/sections/cv-projects-personal.njk index 195414c..1d50766 100644 --- a/_includes/components/sections/cv-projects-personal.njk +++ b/_includes/components/sections/cv-projects-personal.njk @@ -1,5 +1,6 @@ {# - CV Personal Projects Section - filters projects by projectType == "personal" (or unset) + CV Personal Projects Section - collapsible project cards (accordion) + Filters projects by projectType == "personal" (or unset) Data fetched from /cv/data.json via homepage plugin #} @@ -17,52 +18,86 @@ {% endif %} {% if personalProjects.length %} -
+

{{ sectionConfig.title or "Personal Projects" }}

{% for item in personalProjects | head(maxItems) %} -
-
-

- {% if item.url %} - {{ item.name }} - {% else %} - {{ item.name }} +
+ {# Summary row — always visible, clickable #} +

- {% if item.status %} - - {{ item.status }} - +
+
+ {% if item.startDate %} + + {% endif %} + + + +
+ + + {# Detail section — collapsible #} +
+ {% if item.startDate %} +

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

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

{{ item.description }}

+ {% endif %} + + {% if showTechnologies and item.technologies and item.technologies.length %} +
+ {% for tech in item.technologies %} + + {{ tech }} + + {% endfor %} +
{% endif %}
- - {% if item.startDate %} -

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

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

{{ item.description }}

- {% endif %} - - {% if showTechnologies and item.technologies and item.technologies.length %} -
- {% for tech in item.technologies %} - - {{ tech }} - - {% endfor %} -
- {% endif %}
{% endfor %}
diff --git a/_includes/components/sections/cv-projects-work.njk b/_includes/components/sections/cv-projects-work.njk index 054e575..4fe3524 100644 --- a/_includes/components/sections/cv-projects-work.njk +++ b/_includes/components/sections/cv-projects-work.njk @@ -1,5 +1,6 @@ {# - CV Work Projects Section - filters projects by projectType == "work" + CV Work Projects Section - collapsible project cards (accordion) + Filters projects by projectType == "work" Data fetched from /cv/data.json via homepage plugin #} @@ -17,52 +18,86 @@ {% endif %} {% if workProjects.length %} -
+

{{ sectionConfig.title or "Work Projects" }}

{% for item in workProjects | head(maxItems) %} -
-
-

- {% if item.url %} - {{ item.name }} - {% else %} - {{ item.name }} +
+ {# Summary row — always visible, clickable #} +

- {% if item.status %} - - {{ item.status }} - +
+
+ {% if item.startDate %} + + {% endif %} + + + +
+ + + {# Detail section — collapsible #} +
+ {% if item.startDate %} +

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

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

{{ item.description }}

+ {% endif %} + + {% if showTechnologies and item.technologies and item.technologies.length %} +
+ {% for tech in item.technologies %} + + {{ tech }} + + {% endfor %} +
{% endif %}
- - {% if item.startDate %} -

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

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

{{ item.description }}

- {% endif %} - - {% if showTechnologies and item.technologies and item.technologies.length %} -
- {% for tech in item.technologies %} - - {{ tech }} - - {% endfor %} -
- {% endif %}
{% endfor %}