Browse code

added support for "updated" metadata in a blog post

B Mathis authored on 10/03/2010 at 18:26:47
Showing 1 changed files
... ...
@@ -10,7 +10,8 @@ disqus:
10 10
       %h2= link_to(post.title, post.url, {:class=>"title"})
11 11
       .meta
12 12
         - author = (page.respond_to?(:author) && page.author) ? 'by: ' + page.author + ' |' : ''
13
-        #{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")} 
13
+        #{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")}
14
+        = (page.respond_to?(:updated) && page.updated) ? " | upated: #{page.updated}" : ''
14 15
       = preserve rp(post.content)
15 16
       - if page.respond_to?(:disqus) && page.disqus
16 17
         - if post.data["comments_off"]