{{ define "page" }} {{ $root := .Root }} {{ $path := .Path}} {{ $query := .Query}} {{ $filepath := index (split .Path "tree/") (sub (len (split .Path "tree/")) 1) }}
  1. {{ .Name }}
  2. {{ if ne $filepath $path}} {{ range (split (dir $filepath) "/") }} {{ if ne . "." }}
  3. {{ end }} {{ end }}
  4. {{ base $filepath }}

  5. {{ end }}
{{ range .PageData.Dirs }} {{ if eq .Name ".." }} {{ else }} {{ end }} {{ end }} {{ range .PageData.Files }} {{ end }}
{{.Name}} {{.Name}}/ {{ .Commit.Date }}
{{.Name}} {{ .Commit.Date }}
{{ if ne .PageData.ReadmeType "" }}

{{ if eq .PageData.ReadmeType "markdown" }} README.md

{{ markdown .PageData.Readme }}
{{ else }} README.txt
{{ string .PageData.Readme }}
{{ end }}

{{ end }} {{ end }}