~adnano/adnano.co

50c3d6bd7b90317324b26d01195bdc94cbf9a29a — Adnan Maolood a month ago 5dd63ba
Add missing templates
3 files changed, 25 insertions(+), 1 deletions(-)

A templates/atom.xml
A templates/index.gmi
R templates/{_default/page.gmi => page.gmi}
A templates/atom.xml => templates/atom.xml +17 -0
@@ 0,0 1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<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 }}{{ .Path }}" rel="alternate"/>
{{ range .Entries }}<entry>
	<id>{{ index site.URLs 0 }}{{ .Path }}</id>
	<title>{{ .Title }}</title>
	<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
	{{- $path := .Path }}
	{{- range site.URLs }}
	<link href="{{ . }}{{ $path }}" rel="alternate"/>
	{{- end }}
</entry>
{{ end -}}
</feed>

A templates/index.gmi => templates/index.gmi +6 -0
@@ 0,0 1,6 @@
# {{ .Title }}
{{ if .Content }}
{{ .Content }}{{ end }}
{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}}
{{.Date.Format "2006-01-02"}} {{end}}{{.Title}}
{{ end -}}

R templates/_default/page.gmi => templates/page.gmi +2 -1
@@ 1,5 1,6 @@
# {{ .Title }}
Posted on {{ .Date.Format "January 2, 2006" }}
{{- if not .Date.IsZero }}
Posted on {{ .Date.Format "2006-01-02" }}{{ end }}

{{ .Content }}
---