diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c3ba9b0..d4bde35 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,10 +7,12 @@ {{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }} {{/* Keep backward compatibility for the newsletter function */}} -{{ if site.Params.newsletter.enable }} - {{ $newsletterEnabled = true }} -{{ else }} - {{ $newsletterEnabled = false }} +{{ if site.Params.newsletter }} + {{ if site.Params.newsletter.enable }} + {{ $newsletterEnabled = true }} + {{ else }} + {{ $newsletterEnabled = false }} + {{ end }} {{ end }} {{ if $footerEnabled }} @@ -89,26 +91,46 @@ {{ end }} + {{ if $newsletterEnabled }} -
- -

{{ i18n "newsletter_text" }}

-
-
- - {{ i18n "newsletter_warning" }} -
- -
-
+ {{ $provider := site.Params.footer.newsletter.provider }} +
+

{{ i18n "newsletter_text" }}

+ {{ if and (eq $provider "mailchimp") site.Params.footer.newsletter.mailchimpURL }} +
+
+ + {{ i18n "newsletter_warning" }} +
+ +
+ {{ else }} + +
+
+ + {{ i18n "newsletter_warning" }} +
+ +
+ {{ end }} +
{{ end }} diff --git a/layouts/partials/misc/badge.html b/layouts/partials/misc/badge.html new file mode 100644 index 0000000..08d90f5 --- /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 "soft-skill-indicator" }} + {{/* 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/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 2999b99..3bb02d6 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -48,6 +48,11 @@
+ {{ range .badges }} + {{ partial "misc/badge.html" . }} + {{ end }} + + {{ range .softSkills }} {{ partial "misc/soft-skills.html" . }} {{ end }}