From fbb8b3d3e80b6275d4f4714baa44a85586b0c144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 21 May 2021 15:34:49 +0200 Subject: [PATCH] feat: better automated generation of the education timeline --- pages/resume/resume.njk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/resume/resume.njk b/pages/resume/resume.njk index 855ab67..2f332bf 100644 --- a/pages/resume/resume.njk +++ b/pages/resume/resume.njk @@ -128,14 +128,20 @@ permalink: "resume/{{ resume.locale }}/index.html"
  • -
  • {{ resume.education.history[0].end }}
  • - {% for edu in resume.education.history %} + {% if edu.end != resume.education.history[loop.index - 2].start %} + {% if loop.index != 1 %} +
  • + {% endif %} +
  • {{ edu.end }}
  • + {% endif %} +
  • {{ edu.title }}
    {{ edu.institution }}
    {{ edu.eqv }}
  • +
  • {{ edu.start }}
  • {% endfor %}