{{/* sectionId: Optional argument to override the default HTML id for this section. If not provided, the default id is used. */}} {{ $sectionId := "experience-list-shortcode" }} {{ with .Get "sectionId" }} {{ $sectionId = . }} {{ end }} {{ $padding := .Get "padding" }} {{ $title := .Get "title" | default "" }} {{ $containerClass := "" }} {{ if eq $padding "true" }} {{ $containerClass = "container" }} {{ end }}
{{ if $title }}

{{ $title }}

{{ end }} {{ $xp := (where .Site.RegularPages.ByDate "Type" "experience") }} {{ $xpCount := len $xp }} {{ range $index, $element := first $xpCount (sort $xp "Date" "desc") }}
{{ $img := resources.Get .Params.companyLogo }} {{ with $img }} {{ $imgWebp := $img.Resize (printf "%dx%d webp q75 Lanczos picture" $img.Width $img.Height) }} {{ end }}
{{ .Params.duration }}
{{ .Params.jobTitle }}
{{ .Params.company }}. {{ .Params.location }}

{{ .Params.title }}

{{ .Content | safeHTML }}
{{ if ne $index (sub $xpCount 1) }}
{{ end }} {{ end }}