summaryrefslogtreecommitdiff
path: root/page.atom.erb
diff options
context:
space:
mode:
Diffstat (limited to 'page.atom.erb')
-rw-r--r--page.atom.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/page.atom.erb b/page.atom.erb
new file mode 100644
index 0000000..bc81380
--- /dev/null
+++ b/page.atom.erb
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<entry xmlns="http://www.w3.org/2005/Atom">
+ <link rel="alternate" type="text/markdown" href="/blog/<%= @page.slug %>.md"/>
+ <link rel="alternate" type="text/application/atom+xml" href="/blog/<%= @page.slug %>.atom"/>
+ <link rel="alternate" type="text/html" href="/blog/<%= @page.slug %>.html"/>
+ <id>https://lukeshu.com/blog/<%= @page.slug %>.html</id>
+ <updated><%= @page.gitdate.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>