summaryrefslogtreecommitdiff
path: root/bin/index.atom.erb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/index.atom.erb')
-rw-r--r--bin/index.atom.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/index.atom.erb b/bin/index.atom.erb
index c02f709..5b0ef36 100644
--- a/bin/index.atom.erb
+++ b/bin/index.atom.erb
@@ -16,9 +16,11 @@
<updated><%= page.updated.rfc3339 %></updated>
<published><%= page.published.rfc3339 %></published>
<title><%= page.title %></title>
- <content type="html"><%= html_escape(page.content) %></content>
<author><%= page.author.atom %></author>
+<% if page.content %>
+ <content type="html"><%= html_escape(page.content) %></content>
<rights type="html"><%= html_escape(page.rights) %></rights>
+<% end %>
</entry>
<% end %>
</feed>