diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-03 15:41:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-03 15:41:14 -0400 |
commit | 5017c1e252b72c11db5564df6c0d78e163e01156 (patch) | |
tree | c779231810d37657d25dacb4731a9dc90aafab15 /index.atom.erb | |
parent | c8e571ba1c802ddc2722690e48ecbc6ac9fa75f1 (diff) |
tweak the atom template
Diffstat (limited to 'index.atom.erb')
-rw-r--r-- | index.atom.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/index.atom.erb b/index.atom.erb index ea5f1ef..208e15d 100644 --- a/index.atom.erb +++ b/index.atom.erb @@ -3,15 +3,16 @@ <title>Luke Shumaker's Web Log</title> <link rel="self" type="application/atom+xml" href="./index.atom"/> - <link rel="alternate" type="text/markdown" href="./index.md"/> <link rel="alternate" type="text/html" href="./"/> + <link rel="alternate" type="text/markdown" href="./index.md"/> <updated><%= @pages.map{|p|p.gitdate}.sort.last.rfc3339 %></updated> <author><%= Person.new("Luke 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/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.gitdate.rfc3339 %></updated> <published><%= page.date.rfc3339 %></published> |