diff --git a/config.toml b/config.toml index 12fbf7d..507ade2 100644 --- a/config.toml +++ b/config.toml @@ -5,7 +5,7 @@ urls = ["gemini://dimension.sh/~nikdoof"] "/logs/" = "~nikdoof" [permalinks] -"/logs/" = "/logs/{{ .Date.Format `2006/01/02` }}/{{ path.Base .Permalink }}/" +"/logs/" = "/logs/{{ .Date.Format `2006/01/02` }}/{{ path.Base .Path }}/" [[tasks]] input = [".gmi", ".md"] diff --git a/content/notes/kiln.md b/content/notes/kiln.md index 554fb03..ea2c165 100644 --- a/content/notes/kiln.md +++ b/content/notes/kiln.md @@ -16,7 +16,7 @@ Not described too much in the documentation, but you can use the `.Dirs` value p ``` {{ range .Dirs }}## {{.Title }} -{{ range .Pages }}=> {{ .Permalink }} {{ if not .Date.IsZero -}} +{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end }} {{ end -}} diff --git a/templates/_default/atom.xml b/templates/_default/atom.xml index 89cdd2a..78efaab 100644 --- a/templates/_default/atom.xml +++ b/templates/_default/atom.xml @@ -1,14 +1,14 @@ {{ `` | safeHTML }} -{{ index site.URLs 0 }}{{ .Permalink }} +{{ index site.URLs 0 }}{{ .Path }} {{ .Title }} {{ .Updated.Format "2006-01-02T15:04:05Z07:00" }} - + {{ range .Entries }} - {{ index site.URLs 0 }}{{ .Permalink }} + {{ index site.URLs 0 }}{{ .Path }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05Z07:00" }} - {{- $permalink := .Permalink }} + {{- $permalink := .Path }} {{- range site.URLs }} {{- end }} diff --git a/templates/_default/index.gmi b/templates/_default/index.gmi index e573970..7429eaa 100644 --- a/templates/_default/index.gmi +++ b/templates/_default/index.gmi @@ -2,6 +2,6 @@ {{ if .Content }} {{ .Content }}{{ end }} -{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}} +{{ range .Pages }}=> /~nikdoof{{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end -}} diff --git a/templates/index.gmi b/templates/index.gmi index 0824167..e4d4ee8 100644 --- a/templates/index.gmi +++ b/templates/index.gmi @@ -1,7 +1,7 @@ {{ if .Content }} {{ .Content }}{{ end }} {{ range .Dirs }}## {{.Title }} -{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}} +{{ range .Pages }}=> /~nikdoof{{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end }} {{ end -}} diff --git a/templates/logs/index.gmi b/templates/logs/index.gmi index 5f280cd..de32fd4 100644 --- a/templates/logs/index.gmi +++ b/templates/logs/index.gmi @@ -1,7 +1,7 @@ # {{ .Title }} {{ if .Content -}} {{ .Content }}{{ end }} -{{ range .Pages }}=> /~nikdoof{{ .Permalink }} {{ if not .Date.IsZero -}} +{{ range .Pages }}=> /~nikdoof{{ .Path }} {{ if not .Date.IsZero -}} {{.Date.Format "2006-01-02"}} {{end}}{{.Title}} {{ end }} -=> /~nikdoof{{ .Permalink }}atom.xml Atom Feed \ No newline at end of file +=> /~nikdoof{{ .Path }}atom.xml Atom Feed \ No newline at end of file