summaryrefslogtreecommitdiff
path: root/template.atom.erb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-08-27 17:36:46 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-08-27 17:36:46 -0400
commitb373a3a6e1702e7514bb405122a2311d16d85fcd (patch)
tree1b8ededef1b8ac60ec3b1a8a347cfc1669f61bb1 /template.atom.erb
parentd4359dc767d3524a16f529f3545d89ab558e1b8f (diff)
Teach it to make atom:entry files
Diffstat (limited to 'template.atom.erb')
-rw-r--r--template.atom.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/template.atom.erb b/template.atom.erb
new file mode 100644
index 0000000..da52b79
--- /dev/null
+++ b/template.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/<%= @slug %>.md"/>
+ <link rel="alternate" type="text/application/atom+xml" href="/blog/<%= @slug %>.atom"/>
+ <link rel="alternate" type="text/html" href="/blog/<%= @slug %>.html"/>
+ <id>https://lukeshu.com/blog/<%= @slug %>.html</id>
+ <updated><%= @gitdate.rfc3339 %></updated>
+ <published><%= @date.rfc3339 %></published>
+ <title><%= @title %></title>
+ <content type="html"><%= html_escape(@content) %></content>
+ <author><%= @author.atom %></author>
+ <rights type="html"><%= html_escape(@rights) %></rights>
+</entry>