aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default/rss.xml
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 14:05:48 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-08-27 14:05:48 +0200
commit9f5454bda6299db43a4e9de5b3716471388b81d9 (patch)
tree1ceedf64a4517a372d70efc2b6f4bbd9478ce792 /themes/simple/layouts/_default/rss.xml
parente728c3a2cbd06d95cd1226d3b23473816bd0d67e (diff)
downloadmitjafelicijan.com-9f5454bda6299db43a4e9de5b3716471388b81d9.tar.gz
Move blog to Hugo
Diffstat (limited to 'themes/simple/layouts/_default/rss.xml')
-rw-r--r--themes/simple/layouts/_default/rss.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/simple/layouts/_default/rss.xml b/themes/simple/layouts/_default/rss.xml
new file mode 100644
index 0000000..38c8755
--- /dev/null
+++ b/themes/simple/layouts/_default/rss.xml
@@ -0,0 +1,27 @@
1<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
2
3 <channel>
4
5 <title>{{ .Site.Author.name }}</title>
6 <link>{{ .Permalink }}</link>
7 <description>{{ .Site.Params.description }}</description>
8 <language>en-us</language>
9
10 {{ range (where .Site.RegularPages "Section" "posts") }}
11 <item>
12 <title>{{ .Title }}</title>
13 <link>{{ .Permalink }}</link>
14 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
15 {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
16 <guid>{{ .Permalink }}</guid>
17
18 <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
19 <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded>
20
21 </item>
22 {{end}}
23
24 </channel>
25
26
27</rss>