mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-27 12:06:11 +00:00
Fix unclosed tags in Atom template
This commit is contained in:
parent
7a5093b046
commit
713f2e33c8
|
@ -102,14 +102,14 @@ const atom_xml = `<?xml version="1.0" encoding="utf-8"?>
|
||||||
<id>{{ index site.URLs 0 }}{{ .Path }}</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 }}{{ .Path }}" rel="alternate">
|
<link href="{{ index site.URLs 0 }}{{ .Path }}" rel="alternate"/>
|
||||||
{{ range .Entries }}<entry>
|
{{ range .Entries }}<entry>
|
||||||
<id>{{ index site.URLs 0 }}{{ .Path }}</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>
|
||||||
{{- $path := .Path }}
|
{{- $path := .Path }}
|
||||||
{{- range site.URLs }}
|
{{- range site.URLs }}
|
||||||
<link href="{{ . }}{{ $path }}" rel="alternate">
|
<link href="{{ . }}{{ $path }}" rel="alternate"/>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</entry>
|
</entry>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
<id>{{ index site.URLs 0 }}{{ .Path }}</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 }}{{ .Path }}" rel="alternate">
|
<link href="{{ index site.URLs 0 }}{{ .Path }}" rel="alternate"/>
|
||||||
{{ range .Entries }}<entry>
|
{{ range .Entries }}<entry>
|
||||||
<id>{{ index site.URLs 0 }}{{ .Path }}</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>
|
||||||
{{- $path := .Path }}
|
{{- $path := .Path }}
|
||||||
{{- range site.URLs }}
|
{{- range site.URLs }}
|
||||||
<link href="{{ . }}{{ $path }}" rel="alternate">
|
<link href="{{ . }}{{ $path }}" rel="alternate"/>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</entry>
|
</entry>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Reference in a new issue