summaryrefslogtreecommitdiff
path: root/tmpl/page.atom.erb
blob: e4957e3ef810507aff4daf101bd296f3d1fc768b (plain)
1
2
3
4
5
6
7
8
9
10
11
<% require 'siteutil' %><entry xmlns="http://www.w3.org/2005/Atom">
	<link rel="alternate" type="text/html" href="<%= url %>"/>
	<id><%= url %></id>
	<updated><%= atom_updated.to_datetime.rfc3339 %></updated>
	<published><%= atom_published.to_datetime.rfc3339 %></published>
	<title><%= atom_title %></title>
	<author><%= atom_author.atom %></author>
	<% atom_categories.each do |c| %><%= c.atom %><% end %>
	<% if atom_content %><content type="html"><%= Sitegen::html_escape(atom_content) %></content><% end %>
	<% if atom_rights %><rights type="html"><%= Sitegen::html_escape(atom_rights) %></rights><% end %>
</entry>