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

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