From cbf32e3177631c9fa4f7e4b5e8de4365d30f424e Mon Sep 17 00:00:00 2001 From: Raffaele Mancuso Date: Mon, 28 Aug 2023 23:13:01 +0200 Subject: [PATCH] Don't display badge if startDate is empty (#1682) --- _includes/resume/education.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/_includes/resume/education.html b/_includes/resume/education.html index 4dcfab5..13427ae 100644 --- a/_includes/resume/education.html +++ b/_includes/resume/education.html @@ -4,19 +4,23 @@
  • - {% if content.startDate %} + {% if content.startDate and content.startDate!="" %} {% assign startDate = content.startDate | split: "-" | slice: 0,2 | join: "." %} {% assign endDate = content.endDate | split: "-" | slice: 0,2 | join: "." | default: "Present" %} {% assign date = startDate | append: " - "%} {% assign date = date | append: endDate %} {% else %} - {% assign date = "" %} + {% assign date = null %} {% endif %} {% if content.location %} @@ -44,4 +48,4 @@ {% endfor %} - \ No newline at end of file +
    - {{date}} + {% if date %} + + {{date}} + + {% endif %}