This repository was archived by the owner on Jan 27, 2018. It is now read-only.
File tree 4 files changed +36
-1
lines changed
4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 73
73
archive_path : /archive.html
74
74
categories_path : /categories.html
75
75
tags_path : /tags.html
76
+ atom_path : /atom.xml
77
+ rss_path : /rss.xml
76
78
77
79
# Settings for comments helper
78
80
# Set 'provider' to the comment provider you want to use.
Original file line number Diff line number Diff line change 25
25
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
26
26
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
27
27
-->
28
+
29
+ <!-- atom & rss feed -->
30
+ < link href ="{{ BASE_PATH }}{{ site.JB.atom_path }} " type ="application/atom+xml " rel ="alternate " title ="Sitewide ATOM Feed ">
31
+ < link href ="{{ BASE_PATH }}{{ site.JB.rss_path }} " type ="application/rss+xml " rel ="alternate " title ="Sitewide RSS Feed ">
32
+
28
33
</ head >
29
34
30
35
< body >
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ title : Atom Feed
6
6
<feed xmlns =" http://www.w3.org/2005/Atom" >
7
7
8
8
<title >{{ site.title }}</title >
9
- <link href =" {{ site.production_url }}/atom.xml " rel =" self" />
9
+ <link href =" {{ site.production_url }}/{{ site.atom_path }} " rel =" self" />
10
10
<link href =" {{ site.production_url }}" />
11
11
<updated >{{ site.time | date_to_xmlschema }}</updated >
12
12
<id >{{ site.production_url }}</id >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: nil
3
+ title : RSS Feed
4
+ ---
5
+
6
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
7
+ <rss version =" 2.0" >
8
+ <channel >
9
+ <title >{{ site.title }}</title >
10
+ <description >{{ site.title }} - {{ site.author.name }}</description >
11
+ <link >{{ site.production_url }}{{ site.rss_path }}</link >
12
+ <link >{{ site.production_url }}</link >
13
+ <lastBuildDate >{{ site.time | date_to_xmlschema }}</lastBuildDate >
14
+ <pubDate >{{ site.time | date_to_xmlschema }}</pubDate >
15
+ <ttl >1800</ttl >
16
+
17
+ {% for post in site.posts %}
18
+ <item >
19
+ <title >{{ post.title }}</title >
20
+ <description >{{ post.content | xml_escape }}</description >
21
+ <link >{{ site.production_url }}{{ post.url }}</link >
22
+ <guid >{{ site.production_url }}{{ post.id }}</guid >
23
+ <pubDate >{{ post.date | date_to_xmlschema }}</pubDate >
24
+ </item >
25
+ {% endfor %}
26
+
27
+ </channel >
28
+ </rss >
You can’t perform that action at this time.
0 commit comments