forked from ttskch/jekyll-ttskch-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
40 lines (39 loc) · 1.46 KB
/
feed.xml
File metadata and controls
40 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<atom:link href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<link>{{ site.baseurl | prepend: site.url }}/</link>
<description>{{ site.description | xml_escape }}</description>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
{% assign posts = '' | split: '' %}
{% for post in site.posts %}
{% if post.hide != true %}
{% assign posts = posts | push: post %}
{% endif %}
{% endfor %}
{% for post in posts limit:15 %}
{% include page-url-resolver.html page=post %}
<item>
<title>{{ post.title | xml_escape }} | {{ site.title | xml_escape }}</title>
{% if post.eye_catch %}
<image>
<url>{{ post.eye_catch }}</url>
<title>{{ post.title }}</title>
<link>{{ url }}</link>
</image>
{% endif %}
{% for category in post.categories %}
<category domain="{{ category | prepend: '/categories/' | prepend: site.url }}">{{ category }}</category>
{% endfor %}
<link>{{ url }}</link>
<guid isPermaLink="true">{{ url }}</guid>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
</item>
{% endfor %}
</channel>
</rss>