summaryrefslogtreecommitdiff
path: root/bin/index.atom.erb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 21:26:57 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 21:26:57 -0500
commit735f76e124ea65ca5706f1feedc0043b913f11c3 (patch)
treeb744acaaa7a54d563fbbc3af9e435bf90d86e0c0 /bin/index.atom.erb
parenta5f4e1ed470b96c1f97f3827fe07d530c53f0e5c (diff)
Implement external resources.
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>