File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: null
3
+ ---
4
+
5
+ <?xml version =" 1.0" encoding =" utf-8" ?>
6
+ <feed xmlns =" http://www.w3.org/2005/Atom" >
7
+
8
+ <title >{{ site.title }}</title >
9
+ <link href =" {{ site.url }}{{ site.baseurl }}atom.xml" rel =" self" />
10
+ <link href =" {{ site.url }}{{ site.baseurl }}" />
11
+ <updated >{{ site.time | date_to_xmlschema }}</updated >
12
+ <id >{{ site.url }}/</id >
13
+ <author >
14
+ <name >{{ site.author.name }}</name >
15
+ <email >{{ site.author.email }}</email >
16
+ </author >
17
+
18
+ {% for post in site.posts %}
19
+ <entry >
20
+ <title >{{ post.title }}</title >
21
+ <link href =" {{ site.url }}{{ site.baseurl }}{{ post.url }}" />
22
+ <updated >{{ post.date | date_to_xmlschema }}</updated >
23
+ <id >{{ site.url }}{{ post.id }}</id >
24
+ <content type =" html" >{{ post.content | xml_escape }}</content >
25
+ </entry >
26
+ {% endfor %}
27
+
28
+ </feed >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: null
3
+ ---
4
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
5
+ <rss version =" 2.0" xmlns : atom =" http://www.w3.org/2005/Atom" >
6
+ <channel >
7
+ <title >{{ site.title | xml_escape }}</title >
8
+ <description >{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description >
9
+ <link >{{ site.url }}</link >
10
+ <atom : link href =" {{ site.url }}/feed.xml" rel =" self" type =" application/rss+xml" />
11
+ {% for post in site.posts limit:10 %}
12
+ <item >
13
+ <title >{{ post.title | xml_escape }}</title >
14
+ <description >{{ post.content | xml_escape }}</description >
15
+ <pubDate >{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate >
16
+ <link >{{ site.url }}{{ post.url }}</link >
17
+ <guid isPermaLink =" true" >{{ site.url }}{{ post.url }}</guid >
18
+ </item >
19
+ {% endfor %}
20
+ </channel >
21
+ </rss >
You can’t perform that action at this time.
0 commit comments