blob: 039a2f7f9f28d58958a59bc019626b57c6f14c28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://{{ .Domain }}{{ .URL }}" rel="self" type="application/rss+xml" />
<title>{{ .Title }}</title>
{{ $sec := first .Sections }}
{{ $uri := uri $sec.URI }}
<link>https://{{ .Domain }}/{{ $uri }}</link>
<description>{{ .PageDescription }}</description>
<language>{{ .Language }}</language>
{{ $domain := .Domain }}
{{ range $sec.Data }}
<item>
<title>{{ .DataTitle }}</title>
<link>https://{{ $domain }}/{{ $uri }}{{ .Slug }}</link>
<guid>https://{{ $domain }}/{{ $uri }}{{ .Slug }}</guid>
<description>{{ .Description }}</description>
<pubDate>{{ .PubDateRSS }}</pubDate>
</item>
{{ end }}
</channel>
</rss>
|