-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
49 lines (49 loc) · 2.4 KB
/
feed.xml
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
41
42
43
44
45
46
47
48
49
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{ site.title | default: "Charles Barnes" }}</title>
<description>{{ site.description | default: "Personal blog and portfolio of Charles Barnes" }}</description>
<link>{{ site.url | default: "" }}{{ site.baseurl | default: "" }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<language>en-us</language>
<copyright>Copyright {{ 'now' | date: "%Y" }} Charles Barnes</copyright>
<webMaster>{{ site.email }}</webMaster>
<managingEditor>{{ site.email }} ({{ site.author }})</managingEditor>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
<image>
<url>{{ '/assets/images/blog/default-image.png' | absolute_url }}</url>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}</link>
</image>
{% for post in site.posts limit:15 %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.excerpt %}
<description>{{ post.excerpt | strip_html | xml_escape }}</description>
{% else %}
<description>{{ post.content | strip_html | truncatewords: 50 | xml_escape }}</description>
{% endif %}
<content:encoded><![CDATA[{{ post.content }}]]></content:encoded>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
<author>{{ site.email }} ({{ site.author }})</author>
{% if post.image %}
<media:content url="{{ post.image | absolute_url }}" medium="image" />
<media:thumbnail url="{{ post.image | absolute_url }}" />
{% else %}
<media:content url="{{ '/assets/images/blog/default-image.png' | absolute_url }}" medium="image" />
<media:thumbnail url="{{ '/assets/images/blog/default-image.png' | absolute_url }}" />
{% endif %}
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>