mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-15 06:58:50 +02:00
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:
@@ -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 %} · {{ item.location }}{% endif %}{% if item.year %} · {{ item.year }}{% endif %}
|
||||
{{ 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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user