feat: add date display to CV projects and education templates

Projects now show startDate/endDate range. Education supports both
startDate/endDate (new) and year (backward compat) display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-02-09 12:11:22 +01:00
parent 7004dbc4f1
commit 45b42c67fe
2 changed files with 8 additions and 1 deletions
@@ -18,7 +18,8 @@
<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 %}
{{ 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>
@@ -35,6 +35,12 @@
{% endif %}
</div>
{% if item.startDate %}
<p class="text-xs text-surface-500 mb-1">
{{ item.startDate }}{% if item.endDate %} {{ item.endDate }}{% else %} Present{% endif %}
</p>
{% endif %}
{% if item.description %}
<p class="text-sm text-surface-600 dark:text-surface-400 mb-2">{{ item.description }}</p>
{% endif %}