{{ with (.Params.eyebrow | default "" | strings.TrimSpace) }}
{{ with $profile.headshotimage -}}
{{ $headshot := $.Resources.GetMatch . }}
{{ if not $headshot }}{{ $headshot = resources.GetMatch . }}{{ end }}
{{ with $headshot -}}
{{ . | markdownify }}
{{ end }} {{ with .Title }}{{ . | markdownify }}
{{ end }} {{ with .Description }}{{ . | markdownify }}
{{ end }} {{ if or $profile.name $profile.jobtitle $profile.location }}
{{ with $profile.name }}
{{ . }}
{{ end }}
{{ with $profile.jobtitle }}
{{ $briefcase := resources.Get "icons/briefcase.svg" }}
{{ with $briefcase }}{{ end }}{{ . }}
{{ end }}
{{ with $profile.location }}
{{ $locationIcon := resources.Get "icons/map-marker-home.svg" }}
{{ with $locationIcon }}{{ end }}{{ . }}
{{ end }}
{{ end }}
{{ partial "responsive-image.html" (dict
"image" .
"class" "home-headshot"
"alt" $profile.headshotalt
"widths" (slice 272 544 816)
"sizes" "(min-width: 760px) clamp(240px, 27vw, 340px), 220px"
"loading" "eager"
) }}
{{ end }}
{{ end -}}
{{ with .Params.writingtitle }}{{ . }}{{ else }}Recent Posts{{ end }}
{{ with .Params.writingsubtitle }}{{ . }}
{{ end }}
{{- range $paginator.Pages -}}
{{ .Render "li" }}
{{- end }}
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}}
{{- end }}