Skip to content

Commit 934d7d8

Browse files
committed
Merge pull request y7kim#23 from AlexisTM/gh-pages
The feed.xml is not working
2 parents 43a0c08 + c443e8f commit 934d7d8

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed

_layouts/feed.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>{{ site.title | xml_escape }}</title>
5+
<description>{{ site.description | xml_escape }}</description>
6+
<link>{{ site.url }}{{ site.baseurl }}/</link>
7+
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
8+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
9+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
10+
<generator>Jekyll v{{ jekyll.version }}</generator>
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_to_rfc822 }}</pubDate>
16+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
17+
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
18+
{% for tag in post.tags %}
19+
<category>{{ tag | xml_escape }}</category>
20+
{% endfor %}
21+
{% for cat in post.categories %}
22+
<category>{{ cat | xml_escape }}</category>
23+
{% endfor %}
24+
</item>
25+
{% endfor %}
26+
</channel>
27+
</rss>

feed.xml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3-
<channel>
4-
<title>{{ site.title | xml_escape }}</title>
5-
<description>{{ site.description | xml_escape }}</description>
6-
<link>{{ site.url }}{{ site.baseurl }}/</link>
7-
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
8-
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
9-
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
10-
<generator>Jekyll v{{ jekyll.version }}</generator>
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_to_rfc822 }}</pubDate>
16-
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
17-
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
18-
{% for tag in post.tags %}
19-
<category>{{ tag | xml_escape }}</category>
20-
{% endfor %}
21-
{% for cat in post.categories %}
22-
<category>{{ cat | xml_escape }}</category>
23-
{% endfor %}
24-
</item>
25-
{% endfor %}
26-
</channel>
27-
</rss>
1+
---
2+
layout: feed
3+
---

0 commit comments

Comments
 (0)