-
Notifications
You must be signed in to change notification settings - Fork 21
/
feed.xml
23 lines (23 loc) · 1.53 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
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.name | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:20 %}
{% if post.hidden != true %}
<item>
<title>{{ post.title | xml_escape }}</title>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ post.rss_link }}</link>
<guid isPermaLink="true">{{ post.rss_link }}</guid>
<category>{% capture index %}{{ forloop.index | modulo:4 }}{% endcapture %}{% if index == "0" %}color: inherit; display: block; margin-bottom: 10px; text-align: left; font-size: 18px; padding: 20px 30px; border: 2px outset aqua;{% endif %}{% if index == "1" %}color: inherit; display: block; margin-bottom: 10px; text-align: left; font-size: 18px; box-shadow: 0 0 0 1px white, 0 0 0 2px magenta; padding: 20px 30px; border: 1px solid red;{% endif %}{% if index == "2" %}color: inherit; display: block; margin-bottom: 10px; text-align: left; font-size: 18px; padding: 20px 30px; border: 2px groove yellow;{% endif %}{% if index == "3" %}color: inherit; display: block; margin-bottom: 10px; text-align: left; font-size: 18px; padding: 20px 30px; border: 2px dotted red;{% endif %}</category>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>