{{ define "main" }} {{ partial "nav.html" .}} {{ $filePath := .File.Path }} {{ $dirPath := path.Dir $filePath }} {{ $projectRoot := "content" }} {{ $fullDirPath := path.Join $projectRoot $dirPath }} {{ $files := readDir $fullDirPath }} {{$pngs := slice}} {{range $files}} {{if strings.Contains .Name "index.png"}} {{continue}} {{end}} {{if strings.Contains .Name "png" }} {{$pngs = $pngs | append .Name}} {{end}} {{if strings.Contains .Name "gif" }} {{$pngs = $pngs | append .Name}} {{end}} {{end}}
{{.Title}}
{{ partial "separador.html" }}
{{ partial "carousel.html" (dict "pngFiles" $pngs) }}
{{ partial "separador.html" }}
{{ .Content }}

.

{{ end }}