Update for Kiln 0.3

This commit is contained in:
2022-04-09 08:54:39 +01:00
parent 1326cdd184
commit f273b93b56
6 changed files with 10 additions and 10 deletions

View File

@@ -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"]

View File

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

View File

@@ -1,14 +1,14 @@
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
<id>{{ index site.URLs 0 }}{{ .Path }}</id>
<title>{{ .Title }}</title>
<updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
<link href="{{ index site.URLs 0 | safeURL }}{{ .Permalink }}" rel="alternate"/>
<link href="{{ index site.URLs 0 | safeURL }}{{ .Path }}" rel="alternate"/>
{{ range .Entries }}<entry>
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
<id>{{ index site.URLs 0 }}{{ .Path }}</id>
<title>{{ .Title }}</title>
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
{{- $permalink := .Permalink }}
{{- $permalink := .Path }}
{{- range site.URLs }}
<link href="{{ . | safeURL }}{{ $permalink }}" rel="alternate"/>
{{- end }}

View File

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

View File

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

View File

@@ -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
=> /~nikdoof{{ .Path }}atom.xml Atom Feed