1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-13 19:46:06 +02:00

Remove directory links from default index template

This commit is contained in:
Adnan Maolood 2020-11-25 10:12:39 -05:00
parent 92463aff4f
commit 134f38bb58
2 changed files with 0 additions and 6 deletions

View File

@ -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 -}}`

View File

@ -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 -}}