mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-13 01:22:16 +00:00
Update for Kiln 0.3
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user