summaryrefslogtreecommitdiff
path: root/index.atom.erb
blob: ca47602f56c03ced355c8f2dd00cfc9c0a2421bf (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Luke T. Shumaker's Web Log</title>
	<link rel="self"      type="application/atom+xml" href="./index.atom"/>
	<link rel="alternate" type="text/html"            href="./"/>
	<link rel="alternate" type="text/markdown"        href="./index.md"/>
	<updated><%= @pages.map{|p|p.date}.sort.last.rfc3339 %></updated>
	<author><%= Person.new("Luke T. Shumaker").atom %></author>
	<id>https://lukeshu.com/blog/</id>

	<% @pages.sort_by{|p| p.date}.reverse.each do |page| %>
	<entry xmlns="http://www.w3.org/2005/Atom">
		<link rel="alternate" type="text/html"     href="./<%= page.slug %>.html"/>
		<link rel="alternate" type="text/markdown" href="./<%= page.slug %>.md"/>
		<id>https://lukeshu.com/blog/<%= page.slug %>.html</id>
		<updated><%= page.date.rfc3339 %></updated>
		<published><%= page.date.rfc3339 %></published>
		<title><%= page.title %></title>
		<content type="html"><%= html_escape(page.content) %></content>
		<author><%= page.author.atom %></author>
		<rights type="html"><%= html_escape(page.rights) %></rights>
	</entry>
	<% end %>
</feed>