From 669cf3b675a89f25f59fde4299b30174f44919ff Mon Sep 17 00:00:00 2001 From: Gabriel Jean <29616662+GabrielJean@users.noreply.github.com> Date: Sun, 8 May 2022 18:03:26 +0000 Subject: [PATCH] Added logic to the education icon line --- layouts/partials/sections/education-alt.html | 17 ++++++++++------- layouts/partials/sections/education.html | 17 ++++++++++------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index 8885a0f..5867691 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -12,13 +12,16 @@ {{ .section.name }} {{ end }} -
- - - {{ range .degrees}} - -
-
+
+ + + {{ $count := len .degrees }} + {{ range .degrees}} + +
+ {{ if gt $count 1}} +
+ {{ end }}
diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index a547cb2..6cd51c1 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -12,13 +12,16 @@ {{ .section.name }} {{ end }} -
- - - {{ range .degrees}} - -
-
+
+ + + {{ $count := len .degrees }} + {{ range .degrees}} + +
+ {{ if gt $count 1}} +
+ {{ end }}