diff --git a/modules/blox-tailwind/assets/css/blox/all.css b/modules/blox-tailwind/assets/css/blox/all.css index 7e811773..91fceae1 100644 --- a/modules/blox-tailwind/assets/css/blox/all.css +++ b/modules/blox-tailwind/assets/css/blox/all.css @@ -1,2 +1,2 @@ -@import "about.avatar.css"; +@import "biography.css"; @import "skills.css"; diff --git a/modules/blox-tailwind/assets/css/blox/about.avatar.css b/modules/blox-tailwind/assets/css/blox/biography.css similarity index 99% rename from modules/blox-tailwind/assets/css/blox/about.avatar.css rename to modules/blox-tailwind/assets/css/blox/biography.css index daec0286..1c38d880 100644 --- a/modules/blox-tailwind/assets/css/blox/about.avatar.css +++ b/modules/blox-tailwind/assets/css/blox/biography.css @@ -1,4 +1,4 @@ -.wg-about-avatar { +.blox-biography { #profile { text-align: center; padding: 30px 10px; diff --git a/modules/blox-tailwind/layouts/partials/blox/awards.html b/modules/blox-tailwind/layouts/partials/blox/awards.html index 30e7abb3..383eaf94 100644 --- a/modules/blox-tailwind/layouts/partials/blox/awards.html +++ b/modules/blox-tailwind/layouts/partials/blox/awards.html @@ -50,7 +50,7 @@ {{end}} {{ with .certificate_url }} - + {{ i18n "see_certificate" | default "See certificate" }} diff --git a/modules/blox-tailwind/layouts/partials/blox/biography.html b/modules/blox-tailwind/layouts/partials/blox/biography.html index 065bb87b..33cbde98 100644 --- a/modules/blox-tailwind/layouts/partials/blox/biography.html +++ b/modules/blox-tailwind/layouts/partials/blox/biography.html @@ -1,4 +1,4 @@ -{{/* Hugo Blox: About - avatar variation */}} +{{/* Hugo Blox: Biography */}} {{/* Documentation: https://hugoblox.com/blocks/ */}} {{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} @@ -71,7 +71,7 @@ - {{ range $person.social }} + {{ range $person.profiles }} {{ $pack := or .icon_pack "fas" }} {{ $pack_prefix := $pack }} {{ if in (slice "fab" "fas" "far" "fal") $pack }} @@ -97,14 +97,14 @@ {{ with ($block.content.text | emojify | $page.RenderString) | default $person_page.Content }} - + {{ . }} {{ end }} {{ with $block.content.button }} - + {{.text}} diff --git a/modules/blox-tailwind/layouts/partials/blox/experience.html b/modules/blox-tailwind/layouts/partials/blox/experience.html index 8a64248b..7274dbda 100644 --- a/modules/blox-tailwind/layouts/partials/blox/experience.html +++ b/modules/blox-tailwind/layouts/partials/blox/experience.html @@ -32,8 +32,8 @@ {{ range $idx, $key := $person.work }} - - + + {{.position}} @@ -52,7 +52,7 @@ {{.summary | $page.RenderString}} {{ with .button }} - + {{.text}} @@ -70,8 +70,8 @@ {{ range $idx, $key := $person.education }} - - + + {{.area}} @@ -91,7 +91,7 @@ {{.summary | $page.RenderString}} {{ with .button }} - + {{.text}} diff --git a/modules/blox-tailwind/layouts/partials/functions/parse_block_v2.html b/modules/blox-tailwind/layouts/partials/functions/parse_block_v2.html index 02bd6f7b..bac0a7df 100644 --- a/modules/blox-tailwind/layouts/partials/functions/parse_block_v2.html +++ b/modules/blox-tailwind/layouts/partials/functions/parse_block_v2.html @@ -105,7 +105,7 @@ {{ $use_container = false }} {{ end }} -{{ $widget_class := printf "wg-%s" (replace (replace $block_type "." "-") "_" "-") }} +{{ $widget_class := printf "blox-%s" (replace (replace $block_type "." "-") "_" "-") }} {{ $widget_config_file := printf "blocks/%s-config.html" $block_type }} {{ if templates.Exists (printf "partials/%s" $widget_config_file) }} diff --git a/modules/blox-tailwind/layouts/partials/social_links.html b/modules/blox-tailwind/layouts/partials/social_links.html index c0c528be..668adba7 100644 --- a/modules/blox-tailwind/layouts/partials/social_links.html +++ b/modules/blox-tailwind/layouts/partials/social_links.html @@ -1,11 +1,11 @@ -{{ if .Params.social }} +{{ if .Params.profiles }} - {{ range $links := .Params.social }} - {{ $link := .link }} + {{ range $links := .Params.profiles }} + {{ $link := .url }} {{ $scheme := (urls.Parse $link).Scheme }} {{ $target := "" }} {{ if not $scheme }} - {{ $link = .link | relLangURL }} + {{ $link = .url | relLangURL }} {{ else if in (slice "http" "https") $scheme }} {{ $target = "target=\"_blank\" rel=\"noopener\" rel=\"me noopener noreferrer\"" }} {{ end }}