{{- define "main" -}} {{- $svg := "" -}} {{- with .Params.hero.svg -}} {{- $match := $.Resources.GetMatch . -}} {{- if not $match -}} {{- $match = $.Resources.GetMatch (printf "img/%s" .) -}} {{- end -}} {{- with $match -}} {{- $svg = .Content -}} {{- end -}} {{- end -}}

{{ with .Params.hero.title }}{{ . }}{{ else }}{{ .Title }}{{ end }}

{{- with .Params.hero.deck -}}

{{ . | markdownify }}

{{- end -}} {{- if and (not .Params.hero.deck) .Summary -}}

{{ .Summary | markdownify }}

{{- end -}}
{{- with .Params.study -}} {{- end -}} {{- with $svg -}} {{ . | safeHTML }} {{- end -}}
{{- with .Params.study.toc -}} {{- end -}}
{{ .Content }}
{{- end -}}