{{ define "main" }}

{{ .Title }}

{{ with .Params.subtitle }}

{{. | markdownify}}

{{ end }}
{{ $p_cta := "" }} {{ with .Params.primary_cta_page }} {{ $p_cta = . }} {{ end }} {{ $s_cta := "" }} {{ with .Params.secondary_cta_page }} {{ $s_cta = . }} {{ end }} {{ if $p_cta }}{{ with .Site.GetPage $p_cta }}{{ .LinkTitle }}{{ end }}{{ else }}About{{ end }} {{ if $s_cta }}{{ with .Site.GetPage $s_cta }}{{ .LinkTitle }}{{ end }}{{ else }}Projects{{ end }}
{{ $avatar := .Site.Params.avatar }} {{ $default_image := "images/default.png" }} {{ $image := "" }} {{ with $avatar }} {{ $image = resources.Get $avatar }} {{ else }} {{ $image = resources.Get $default_image }} {{ end }} {{ if eq .Site.Params.grayscale_avatar true }} {{ $image = $image | images.Filter (images.Grayscale) }} {{ end }} Headshot or avatar belonging to the website owner {{ if eq .Site.Params.home_hero_socials true }} {{ partial "general/social-links.html" . }} {{ end }}
{{/* Shortcodes from page content */}} {{ .Content }}
{{ end }}