-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfeed.xml
40 lines (34 loc) · 1.48 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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="{{'feed.xsl' | relative_url}}" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa" >
<link rel="alternate" type="text/html" href="{{ '/' | absolute_url }}" hreflang="fa" />
<link rel="self" type="application/atom+xml" href="{{ 'feed.xml' | absolute_url }}" />
<id>{% if site.atom_feed_id %}{{ site.atom_feed_id }}{% else %}{{ '/' | absolute_url | xml_escape }}{% endif %}</id>
<title type="text" xml:lang="fa">{{ site.title | xml_escape}}</title>
<updated>{{ site.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<rights>{{ site.copyright | xml_escape}}</rights>
<author>
<name>{{ site.author | xml_escape}}</name>
<email>{{ site.email | xml_escape}}</email>
<uri>{{ site.url | xml_escape }}</uri>
</author>
{% for post in site.posts limit: 20 %}
<entry>
{% if post.uuid %}
<id>urn:uuid:{{ post.uuid }}</id>
{% else %}
<id>{{ post.url | absolute_url | xml_escape }}</id>
{% endif %}
<title>{{ post.title | xml_escape}}</title>
<updated>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<link rel="alternate" type="text/html" href="{{ post.url | absolute_url }}"/>
{% for tag in post.tags %}<category term="{{ tag }}"/>{% endfor %}
<content type="html">
<![CDATA[<div dir="rtl">{{ post.content }}</div>]]>
</content>
<summary>{{ post.content | strip_html | truncatewords: 100 }}</summary>
</entry>
{% endfor %}
</feed>