feat: better automated generation of the education timeline

This commit is contained in:
Laureηt 2021-05-21 15:34:49 +02:00
parent 804b2d89fe
commit fbb8b3d3e8

View file

@ -128,14 +128,20 @@ permalink: "resume/{{ resume.locale }}/index.html"
<span class="arrow-up"></span>
<li class="event"></li>
<li class="year">{{ resume.education.history[0].end }}</li>
{% for edu in resume.education.history %}
{% if edu.end != resume.education.history[loop.index - 2].start %}
{% if loop.index != 1 %}
<li class="event"></li>
{% endif %}
<li class="year">{{ edu.end }}</li>
{% endif %}
<li class="event">
{{ edu.title }}<br>
<a href="{{ edu.url }}">{{ edu.institution }}</a>
<br>{{ edu.eqv }}
</li>
<li class="year">{{ edu.start }}</li>
{% endfor %}