Improvements

This commit is contained in:
2021-06-29 12:55:08 +01:00
parent 4ddca735a9
commit a13cbbe5d7
12 changed files with 81 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
# {{ .Title }}
{{ if .Content }}
{{ .Content }}{{ end }}
{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}}
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
{{ end -}}

View File

@@ -1,5 +1,6 @@
# {{ .Title }}
{{- if not .Date.IsZero }}
Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
{{ .Content }}
{{- if not .Date.IsZero }}
Posted on {{ .Date.Format "2006-01-02" }}{{ end }}

8
templates/index.gmi Normal file
View File

@@ -0,0 +1,8 @@
# {{ .Title }}
{{ if .Content }}
{{ .Content }}{{ end }}
{{ range .Dirs }}## {{.Title }}
{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}}
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
{{ end }}
{{ end -}}

7
templates/logs/index.gmi Normal file
View File

@@ -0,0 +1,7 @@
# {{ .Title }}
{{ if .Content -}}
{{ .Content }}{{ end }}
{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}}
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
{{ end }}
=> /~nikdoof{{ .Permalink }}atom.xml Atom Feed