{{ define "main" }}

{{ .Site.Params.Section1.BaselinePart1 }} {{ .Site.Params.Section1.BaselinePart2 }}

{{ replace .Site.Params.Section1.Description .Site.Title ( print "" .Site.Title "" ) | safeHTML }}

{{ $bubbles := resources.Get .Site.Params.Section1.Image }}
{{ $img := resources.Get .Site.Params.FeaturedImage }}

{{ .Site.Params.Section2.Title }}

{{ range .Site.Params.Section2.List }}
{{ $icon := resources.Get ( print "images/icons/" .icon ".svg") }}

{{ .title }}

{{ .text }}

{{ end }}

{{ .Site.Params.Section3.Title }}

{{ range .Site.Params.Section3.List }}
{{ $icon := resources.Get ( print "images/icons/" .icon ".svg") }}

{{.title}}

{{.description}}

{{ end }}

{{ .Site.Params.Section4.Title }}

{{ $projects := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.Section4.projectsPages }} {{ range $projects }}
{{ if (not (isset .Params "image")) | or (eq .Params.image "") }}

{{.Title}}

{{else}} {{ $img := resources.Get .Params.image }} {{.Title}} {{end}}
{{ end }}
{{ $references := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.Section4.referencesPages }} {{ range $references }}
{{ if (not (isset .Params "image")) | or (eq .Params.image "") }}

{{.Title}}

{{else}} {{ $img := resources.Get .Params.image }} {{.Title}} {{end}}
{{ end }}
{{ end }}