mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-17 20:09:21 +00:00
Update for Kiln 0.3
This commit is contained in:
@@ -5,7 +5,7 @@ urls = ["gemini://dimension.sh/~nikdoof"]
|
|||||||
"/logs/" = "~nikdoof"
|
"/logs/" = "~nikdoof"
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
"/logs/" = "/logs/{{ .Date.Format `2006/01/02` }}/{{ path.Base .Permalink }}/"
|
"/logs/" = "/logs/{{ .Date.Format `2006/01/02` }}/{{ path.Base .Path }}/"
|
||||||
|
|
||||||
[[tasks]]
|
[[tasks]]
|
||||||
input = [".gmi", ".md"]
|
input = [".gmi", ".md"]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Not described too much in the documentation, but you can use the `.Dirs` value p
|
|||||||
|
|
||||||
```
|
```
|
||||||
{{ range .Dirs }}## {{.Title }}
|
{{ range .Dirs }}## {{.Title }}
|
||||||
{{ range .Pages }}=> {{ .Permalink }} {{ if not .Date.IsZero -}}
|
{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}}
|
||||||
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
|
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<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>
|
<title>{{ .Title }}</title>
|
||||||
<updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
<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>
|
{{ range .Entries }}<entry>
|
||||||
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
|
<id>{{ index site.URLs 0 }}{{ .Path }}</id>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||||
{{- $permalink := .Permalink }}
|
{{- $permalink := .Path }}
|
||||||
{{- range site.URLs }}
|
{{- range site.URLs }}
|
||||||
<link href="{{ . | safeURL }}{{ $permalink }}" rel="alternate"/>
|
<link href="{{ . | safeURL }}{{ $permalink }}" rel="alternate"/>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
{{ .Content }}{{ end }}
|
{{ .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}}
|
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
{{ .Content }}{{ end }}
|
{{ .Content }}{{ end }}
|
||||||
{{ range .Dirs }}## {{.Title }}
|
{{ 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}}
|
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# {{ .Title }}
|
# {{ .Title }}
|
||||||
{{ if .Content -}}
|
{{ if .Content -}}
|
||||||
{{ .Content }}{{ end }}
|
{{ .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}}
|
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
=> /~nikdoof{{ .Permalink }}atom.xml Atom Feed
|
=> /~nikdoof{{ .Path }}atom.xml Atom Feed
|
||||||
Reference in New Issue
Block a user