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