forked from hanami/hanami.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml.erb
29 lines (28 loc) · 1019 Bytes
/
atom.xml.erb
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Hanami</title>
<subtitle>Hanami web framework blog</subtitle>
<link href="http://hanamirb.org/atom.xml" rel="self"/>
<link href="http://hanamirb.org/blog"/>
<updated><%= blog.articles.first.date.to_time.iso8601 %></updated>
<id>http://hanamirb.org/blog</id>
<author>
<name>Hanami</name>
<email>admin@hanamirb.org</email>
</author>
<% articles(10).each do |article| %>
<entry>
<title><%= article_title(article) %></title>
<id>http://hanamirb.org<%= article.url %></id>
<link rel="alternate" href="http://hanamirb.org<%= article.url %>"/>
<updated><%= article.date.to_time.iso8601 %></updated>
<author>
<name><%= article_author(article) %></name>
</author>
<summary>
<%= article_summary(article) %>
</summary>
<content type="html"><![CDATA[<%= article.body %>]]></content>
</entry>
<% end %>
</feed>