mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
Remove directory links from default index template
This commit is contained in:
parent
92463aff4f
commit
134f38bb58
|
@ -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 -}}`
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue