{{- $pages := .Pages -}} {{- if .IsHome -}} {{- $pages = where .Site.RegularPages "Section" "in" .Site.MainSections -}} {{- end -}} {{- $paginator := .Paginate (where $pages "Params.displayinlist" "!=" false) -}} {{ partial "head.html" . }} {{ partial "nav-bar.html" . }}
{{ $profile := .Site.Params.profile | default dict }} {{ if isset .Params "profile" }} {{ $profile = .Params.profile | default dict }} {{ end }} {{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
{{ with (.Params.eyebrow | default "" | strings.TrimSpace) }}

{{ . | 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 }}
{{ with $profile.headshotimage -}} {{ $headshot := $.Resources.GetMatch . }} {{ if not $headshot }}{{ $headshot = resources.GetMatch . }}{{ end }} {{ with $headshot -}}
{{ 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 -}}
{{- end }} {{ with .Content -}}
{{ . }}
{{- 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 }}
{{ $aboutLabel := or $profile.name .Site.Title }}
{{ partial "footer.html" . }} {{ partial "scripts.html" . }}