mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-25 15:49:29 +00:00
Initial commit
This commit is contained in:
17
templates/_default/atom.xml
Normal file
17
templates/_default/atom.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
<link href="{{ index site.URLs 0 | safeURL }}{{ .Permalink }}" rel="alternate"/>
|
||||
{{ range .Entries }}<entry>
|
||||
<id>{{ index site.URLs 0 }}{{ .Permalink }}</id>
|
||||
<title>{{ .Title }}</title>
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
|
||||
{{- $permalink := .Permalink }}
|
||||
{{- range site.URLs }}
|
||||
<link href="{{ . | safeURL }}{{ $permalink }}" rel="alternate"/>
|
||||
{{- end }}
|
||||
</entry>
|
||||
{{ end -}}
|
||||
</feed>
|
||||
Reference in New Issue
Block a user