{{ define "main" }} {{ $currentFolderName := or $.File.ContentBaseName "index" }}
{{ if .IsHome }}

{{.Site.Title}}

{{ else }}

{{or .Title .File.Dir}}

{{ end }}
{{.Content}}
{{ with .Sections }} {{ end }} {{ with .RegularPages }} {{ end }}
{{ end }}