-
Notifications
You must be signed in to change notification settings - Fork 53
/
rss.xml
31 lines (30 loc) · 1.52 KB
/
rss.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
---
layout: null
title : RSS Feed
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.title }} - {{ site.tagline }}</description>
<atom:link href="{{ site.production_url }}{{ site.JB.rss_path }}" rel="self" type="application/rss+xml"/>
<link>{{ site.production_url }}</link>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<ttl>1800</ttl>
{% capture tmpcache %}
{% capture nl0 %}
{% endcapture %}
{% endcapture %}{% assign tmpcache = nil %}
{% for post in site.posts %}
{% if post.draft and post.draft == true %}{% continue %}{% endif %}
<item>
<title>{% capture post_title %}{{ post.title | strip_html | xml_escape | strip }}{%endcapture%}{{post_title}}</title>
{% capture description %}{{ post.description | strip_html | replace: nl0, ' ' | replace: ' ', ' ' | replace: ' ', ' ' | replace: ' ', ' ' | strip_html | xml_escape }}{% endcapture %}{% capture content %}{{ post.content | strip_html | replace: nl0, ' ' | replace: ' ', ' ' | replace: ' ', ' ' | replace: ' ', ' ' | strip | truncate:200 | strip_xml | xml_escape }}{% endcapture %}{% if content.size != 0 %}<description>{{description}} {{content}}</description>{% endif %}
<link>{{ site.production_url }}{{ post.url }}</link>
<guid>{{ site.production_url }}{{ post.id }}</guid>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
</item>
{% endfor %}
</channel>
</rss>