diff --git a/templates.go b/templates.go index ff548d5..117114f 100644 --- a/templates.go +++ b/templates.go @@ -77,9 +77,6 @@ func (t *Templates) FindTemplate(path string, tmpl string) *template.Template { const index_gmi = `# {{ .Title }} {{ if .Content }} {{ .Content }}{{ end }} -{{ if .Dirs }}{{ range .Dirs }}=> {{ .Path }}{{ if .Title }} {{ .Title }}{{ end }} -{{ end }} -{{ end -}} {{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end -}}` diff --git a/templates/index.gmi b/templates/index.gmi index 2de410a..6b661b0 100644 --- a/templates/index.gmi +++ b/templates/index.gmi @@ -1,9 +1,6 @@ # {{ .Title }} {{ if .Content }} {{ .Content }}{{ end }} -{{ if .Dirs }}{{ range .Dirs }}=> {{ .Path }}{{ if .Title }} {{ .Title }}{{ end }} -{{ end }} -{{ end -}} {{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end -}}