{{/* 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 "me" }} {{ $profile := partial "functions/get_author_profile" $author }} {{ $is_education_first := $block.design.is_education_first | default false }}
{{ $experience := or $profile.experience $profile.work }} {{ if $experience }}

{{ i18n "experience" | default "Experience" }}

    {{ range $idx, $key := $experience }}
  1. {{ if .icon }} {{ partial "functions/get_icon" (dict "name" .icon "attributes" "class='w-5 h-5'") }} {{else}} {{end}}

    {{ .role | default .position }}

    {{ .org | default .company_name }}
    {{.summary | $page.RenderString}}
    {{ with .button }} {{ with .icon }} {{ partial "functions/get_icon" (dict "name" . "attributes" "class='w-4 h-4'") }} {{ end }} {{ .text | default "Learn more" }} {{ end }}
  2. {{ end }}
{{ end }} {{ if $profile.education }}

{{ i18n "education" }}

    {{ range $idx, $key := $profile.education }}
  1. {{ if .icon }} {{ partial "functions/get_icon" (dict "name" .icon "attributes" "class='w-5 h-5 text-primary-800 dark:text-primary-300'") }} {{else}} {{end}}

    {{ .degree | default .area }}

    {{ .institution }}
    {{.summary | $page.RenderString}}
    {{ with .button }} {{ with .icon }} {{ partial "functions/get_icon" (dict "name" . "attributes" "class='w-4 h-4'") }} {{ end }} {{ .text | default "Learn more" }} {{ end }}
  2. {{ end }}
{{ end }}