{{ partial "header.html" . }}
{{ partial "nav.html" . }}
{{ .Title }}
{{ .Content }}
{{- define "listDir" -}}
{{- $dir := .dir -}}
{{ $files := readDir (printf "/assets/%s" $dir)}}
{{- range $files -}}
-
{{- if .IsDir -}}
{{ title (replaceRE `[_-]` " " (path.BaseName .Name)) }}
{{- template "listDir" (dict "dir" (printf "%s/%s" $dir .Name)) -}}
{{- else -}}
{{- with resources.Get (printf "%s/%s" $dir .Name) -}}
{{ title (replaceRE `[_-]` " " (path.BaseName .Name)) }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- template "listDir" (dict "dir" "dokumenty") -}}
{{ partial "footer.html" . }}