From 5022d1a0df1534b1cbec1cbee23568f201ea1cc6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 9 Jan 2017 16:45:53 -0500 Subject: Implement actual file generation, go through fixing things. --- tmpl/page.atom.erb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'tmpl/page.atom.erb') diff --git a/tmpl/page.atom.erb b/tmpl/page.atom.erb index ea37ea5..d690974 100644 --- a/tmpl/page.atom.erb +++ b/tmpl/page.atom.erb @@ -1,10 +1,11 @@ - - - <%= page.url %> - <%= page.updated.rfc3339 %> - <%= page.published.rfc3339 %> - <%= page.title %> - <%= page.author.atom %> - <% if page.content %><%= html_escape(page.content) %><% end %> - <% if page.rights %><%= html_escape(page.rights) %><% end %> +<% require 'siteutil' %> + + <%= url %> + <%= atom_updated.to_datetime.rfc3339 %> + <%= atom_published.to_datetime.rfc3339 %> + <%= atom_title %> + <%= atom_author.atom %> + <% atom_categories.each do |c| %><%= c.atom %><% end %> + <% if atom_content %><%= SiteUtil::html_escape(atom_content) %><% end %> + <% if atom_rights %><%= SiteUtil::html_escape(atom_rights) %><% end %> -- cgit v1.2.3