From 134f38bb58a6dd79447621e3fb0caee342546f34 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Wed, 25 Nov 2020 10:12:39 -0500 Subject: [PATCH] Remove directory links from default index template --- templates.go | 3 --- templates/index.gmi | 3 --- 2 files changed, 6 deletions(-) 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 -}}