2024-03-03 05:05:16 +00:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
{{ partial "nav.html" . }}
|
|
|
|
<div class="content">
|
|
|
|
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ .Content }}
|
|
|
|
{{- define "listDir" -}}
|
|
|
|
{{- $dir := .dir -}}
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{ $files := readDir (printf "/assets/%s" $dir)}}
|
|
|
|
{{- range $files -}}
|
|
|
|
<li>
|
|
|
|
{{- if .IsDir -}}
|
2024-03-03 05:37:26 +00:00
|
|
|
{{ title (replaceRE `[_-]` " " (path.BaseName .Name)) }}
|
2024-03-03 05:05:16 +00:00
|
|
|
{{- template "listDir" (dict "dir" (printf "%s/%s" $dir .Name)) -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- with resources.Get (printf "%s/%s" $dir .Name) -}}
|
2024-03-03 05:37:26 +00:00
|
|
|
<a href="{{ .RelPermalink }}">{{ title (replaceRE `[_-]` " " (path.BaseName .Name)) }}</a>
|
2024-03-03 05:05:16 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- template "listDir" (dict "dir" "dokumenty") -}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|