forked from codeheroco/codehero-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
37 lines (36 loc) · 1.17 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
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>CODEHERO</title>
<link href="http://codehero.co/feed" rel="self" type="application/atom+xml"/>
<link href="http://codehero.co"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://codehero.co</id>
<icon>http://i.imgur.com/OZ5xRQT.png</icon>
{% for post in site.posts limit: 20 %}
<entry>
<title>{{ post.title | escape }}</title>
<link href="http://codehero.co{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://codehero.co{{ post.id }}</id>
<content type="html">
<![CDATA[
<div >
<img alt="{{ post.title }}" src="{{ post.thumbnail }}"/>
</div>
]]>
{% assign paragraphs = post.content | split:'</p>' %}
{% for paragraph in paragraphs limit:1 %}
{{ paragraph | xml_escape }}
{% endfor %}
{% assign footer = '</p><p><a href="http://codehero.co{{ post.url }}">Seguir leyendo...</a></p>' %}
{{ footer | xml_escape }}
</content>
<author>
<name>{{ post.author }}</name>
</author>
</entry>
{% endfor %}
</feed>