Upgrade to kiln 0.2
This commit is contained in:
13
templates/_default/atom.xml
Normal file
13
templates/_default/atom.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>{{ .URL }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
<link href="{{ .URL }}" rel="alternate"/>
|
||||
{{ range .Pages }}<entry>
|
||||
<id>{{ .URL }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
</entry>
|
||||
{{ end -}}
|
||||
</feed>
|
6
templates/_default/index.gmi
Normal file
6
templates/_default/index.gmi
Normal file
@@ -0,0 +1,6 @@
|
||||
# {{ .Title }}
|
||||
{{ if .Content }}
|
||||
{{ .Content }}{{ end }}
|
||||
{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}}
|
||||
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
|
||||
{{ end -}}
|
5
templates/_default/page.gmi
Normal file
5
templates/_default/page.gmi
Normal file
@@ -0,0 +1,5 @@
|
||||
# {{ .Title }}
|
||||
{{- if not .Date.IsZero }}
|
||||
Posted on {{ .Date.Format "2006-01-02" }} by Nick Thomas{{ end }}
|
||||
|
||||
{{ .Content }}
|
Reference in New Issue
Block a user