{{- $hero := .Site.Params.hero -}}
{{ with $hero.badge }}

{{ . }}

{{ end }} {{ if $hero.available }} {{ default "Available for work" $hero.availableLabel }} {{ end }}

{{ default "Hi, I’m Your Name." $hero.title }}

{{ with $hero.role }}

{{ . }}

{{ end }}
{{ with $hero.summary }}

{{ . }}

{{ end }}
{{ with $hero.location }} {{ . }} {{ end }} {{ with $hero.focus }} {{ . }} {{ end }}
{{ with $hero.highlights }}
{{ range . }} {{ .label }} {{ end }}
{{ end }}
{{ with $hero.primary }} {{ .label | default "View projects" }} {{ end }} {{ with $hero.secondary }} {{ .label | default "Read the blog" }} {{ end }}
{{ with $hero.avatar }}
{{ $hero.title | default $.Site.Title }}
{{ end }}