From 1b8f6571f97da909ffd1a93a1f02da303590dd75 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Mon, 17 May 2021 22:44:13 +0600 Subject: [PATCH] Merge certifications and sofkSkills under "badges" generic title Signed-off-by: hossainemruz --- layouts/partials/misc/badge.html | 35 +++++++++++++++++++++++ layouts/partials/misc/certifications.html | 8 ------ layouts/partials/misc/soft-skills.html | 1 + layouts/partials/sections/about.html | 6 ++-- 4 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 layouts/partials/misc/badge.html delete mode 100644 layouts/partials/misc/certifications.html diff --git a/layouts/partials/misc/badge.html b/layouts/partials/misc/badge.html new file mode 100644 index 0000000..2a46299 --- /dev/null +++ b/layouts/partials/misc/badge.html @@ -0,0 +1,35 @@ +
+{{ if eq .type "certification" }} + {{/* Verifiable certificate badge from https://www.credly.com */}} +
+ + {{ .name }} + +
+{{ else if eq .type "circular-bar" }} + {{/* Circular bar indicating the level of expertise in a skill */}} + {{ $predefinedColor:= true}} + {{ if hasPrefix .color "#"}} + {{ $predefinedColor = false }} + {{ end }} +
+ + + + + + +
{{ .name }}
+
+{{ end }} +
diff --git a/layouts/partials/misc/certifications.html b/layouts/partials/misc/certifications.html deleted file mode 100644 index f81f7a4..0000000 --- a/layouts/partials/misc/certifications.html +++ /dev/null @@ -1,8 +0,0 @@ -
-
- - {{ .name }} - -
-
- diff --git a/layouts/partials/misc/soft-skills.html b/layouts/partials/misc/soft-skills.html index cbdc0ae..1517564 100644 --- a/layouts/partials/misc/soft-skills.html +++ b/layouts/partials/misc/soft-skills.html @@ -1,3 +1,4 @@ +{{/* TODO: Delete this file in version v4+ */}}
{{ $predefinedColor:= true}} {{ if hasPrefix .color "#"}} diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index c6a6ca8..3bb02d6 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -48,9 +48,11 @@
- {{ range .certifications }} - {{ partial "misc/certifications.html" . }} + {{ range .badges }} + {{ partial "misc/badge.html" . }} {{ end }} + + {{ range .softSkills }} {{ partial "misc/soft-skills.html" . }} {{ end }}