Skip to content

Commit 920c100

Browse files
authored
Merge pull request #3 from smithjw1/attempting-export
Create export.xml
2 parents e030cc6 + d310dbb commit 920c100

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

export.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>{{ site.description | xml_escape }}</description>
9+
<link>{{ site.url }}{{ site.baseurl }}/</link>
10+
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
11+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
12+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
13+
<generator>Jekyll v{{ jekyll.version }}</generator>
14+
{% for post in site.posts %}
15+
<item>
16+
<title>{{ post.title | xml_escape }}</title>
17+
<description>{{ post.content | xml_escape }}</description>
18+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
19+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
20+
<slug>{{ post.slug }}</slug>
21+
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
22+
{% for tag in post.tags %}
23+
<category>{{ tag | xml_escape }}</category>
24+
{% endfor %}
25+
{% for cat in post.categories %}
26+
<category>{{ cat | xml_escape }}</category>
27+
{% endfor %}
28+
<excerpt>{{ post.excerpt | xml_escape }}</excerpt>
29+
</item>
30+
{% endfor %}
31+
</channel>
32+
</rss>

0 commit comments

Comments
 (0)