{{ partial "header.html" . }}
{{ $.Scratch.Set "indexFound" false }}
{{ range where .Site.Pages ".Type" "index" }}
    {{ $.Scratch.Set "indexFound" true }}
    {{ .Content }}
{{ end }}

{{if eq ($.Scratch.Get "indexFound") false }}
{{ partial "welcome.html" . }}
{{ end }}

{{ partial "footer.html" . }}
