{{/* Hugo Blox: Experience */}} {{/* Documentation: https://hugoblox.com/blocks/ */}} {{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} {{/* Initialise */}} {{ $page := .wcPage }} {{ $block := .wcBlock }} {{ $text := $block.content.text | emojify | $page.RenderString }} {{ $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 About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }} {{end}} {{ $person := $person_page.Params }} {{ $is_education_first := $block.design.is_education_first | default false }}
{{ if $person.work }}

{{ i18n "work_experience" | default "Experience" }}

    {{ range $idx, $key := $person.work }}
  1. {{.position}}

    {{.company_name}}
    {{.summary | $page.RenderString}}
    {{ with .button }} {{.text}} {{ end }}
  2. {{ end }}
{{ end }} {{ if $person.education }}

{{ i18n "education" }}

    {{ range $idx, $key := $person.education }}
  1. {{.area}}

    {{.institution}}
    {{.summary | $page.RenderString}}
    {{ with .button }} {{.text}} {{ end }}
  2. {{ end }}
{{ end }}