-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.xml
27 lines (27 loc) · 1.18 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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
{% capture site_url %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
<title>{{ site.name }}</title>
<description>{{ site.description }}</description>
<link>{{ site_url }}</link>
<language>en</language>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% assign logs = site.logs | reverse %}
{% for post in logs limit:10 %}
{% include videos_before_post_rss.html %}
<item>
{% assign post_year = post.created | slice: 0,4 %}
{% assign post_id = post.created | date: "%Y%m%d" %}
{% capture post_url %}{{ site_url }}{{ post.url }}{% endcapture %}
<title>{{ post.created | date: "%Y-%m-%d" }} - {{ post.title }}</title>
<description>{{ post.content | replace: 'img src="..', 'img src="https://meri-imperiumi.github.io/log'| replace: 'https://meri-imperiumi.github.io/log',site_url| xml_escape }}</description>
<pubDate>{{ post.created | date_to_rfc822 }}</pubDate>
<link>{{ post_url }}</link>
<guid isPermaLink="true">{{ post_url }}</guid>
</item>
{% endfor %}
</channel>
</rss>