{{/* Hugo Blox: Awards */}} {{/* 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}} {{ $awards := $person_page.Params.awards }}
{{ $block.content.title | markdownify | emojify }}
{{ with $block.content.text }}

{{ . | markdownify | emojify }}

{{ end }}
{{ if $awards }} {{ range $idx, $key := sort $awards ".date_start" "desc" }}
{{- $icon := .icon }} {{ with $icon }}
{{ partial "functions/get_icon" (dict "name" $icon "pack" "brands" "attributes" "style=\"height: 100%;\"") }}
{{ end}} {{with .url}}{{end}}
{{.title | markdownify | emojify}}
{{with .url}}
{{end}}
{{.awarder}} ∙ {{ if .date}} {{ (time .date) | time.Format ($block.design.date_format | default "January 2006") }} {{else}} {{ i18n "present" | default "Present" }} {{end}}
{{with .summary}}
{{. | markdownify | emojify}}
{{end}} {{ with .certificate_url }} {{ i18n "see_certificate" | default "See certificate" }} {{ end }}
{{end}} {{end}}