{{/* Hugo Blox: Skills */}} {{/* Documentation: https://hugoblox.com/blocks/ */}} {{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} {{/* Initialise */}} {{ $page := .wcPage }} {{ $block := .wcBlock }} {{ $author := $block.content.username | default "admin" }} {{ $person_page_path := (printf "/authors/%s" $author) }} {{ $person_page := site.GetPage $person_page_path }} {{ if not $person_page }} {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your Skill block and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }} {{end}} {{ $skills := $person_page.Params.skills }}
{{ $block.content.title | markdownify | emojify }}
{{ with $block.content.text }}

{{ . | markdownify | emojify }}

{{ end }}
{{ range $skills }} {{ $color := .color | default "" }} {{ $color_border := .color_border | default "" }}
{{ .name | markdownify | emojify }} {{ with .description }}

{{ . | markdownify | emojify }}

{{ end }}
{{ range .items }} {{ $pack := or .icon_pack "fas" }} {{ $pack_prefix := $pack }} {{ if in (slice "fab" "fas" "far" "fal") $pack }} {{ $pack_prefix = "fa" }} {{ end }}
{{ with .icon }} {{ partial "functions/get_icon" (dict "name" . "attributes" "style=\"height: 1em;\"") }} {{ end }} {{ .name | markdownify | emojify }} {{ with .description }}

{{ . | markdownify | emojify }}

{{ end }}
{{ end }}
{{ end }}