Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Jean <29616662+GabrielJean@users.noreply.github.com>2022-05-16 08:08:47 +0300
committerGitHub <noreply@github.com>2022-05-16 08:08:47 +0300
commit2ae15e5235c268f97ca7f4f0d4ad840c734f37ea (patch)
treed21dcec56dfc884089c9f82cb8e3375899d64e3f
parenteacae1be3ecc315ed483ff52d2e0fb1f42aff419 (diff)
Added logic to the education icon line (#589)
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
-rw-r--r--layouts/partials/sections/education-alt.html17
-rw-r--r--layouts/partials/sections/education.html17
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 @@
<span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
{{ end }}
- <div class="container">
- <table class="education-info-table">
- <tbody>
- {{ range .degrees}}
- <tr>
- <td class="icon">
- <div class="hline"></div>
+ <div class="container">
+ <table class="education-info-table">
+ <tbody>
+ {{ $count := len .degrees }}
+ {{ range .degrees}}
+ <tr>
+ <td class="icon">
+ {{ if gt $count 1}}
+ <div class="hline"></div>
+ {{ end }}
<div class="icon-holder">
<i class="fas {{ .icon }}"></i>
</div>
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 @@
<span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
{{ end }}
- <div class="container">
- <table class="education-info-table">
- <tbody>
- {{ range .degrees}}
- <tr>
- <td class="icon">
- <div class="hline"></div>
+ <div class="container">
+ <table class="education-info-table">
+ <tbody>
+ {{ $count := len .degrees }}
+ {{ range .degrees}}
+ <tr>
+ <td class="icon">
+ {{ if gt $count 1}}
+ <div class="hline"></div>
+ {{ end }}
<div class="icon-holder">
<i class="fas {{ .icon }}"></i>
</div>