aboutsummaryrefslogtreecommitdiff
path: root/source/index.haml
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2010-03-10 12:26:47 -0600
committerB Mathis <brandon@imathis.com>2010-03-10 12:26:47 -0600
commit33bca7246e9f5c3b61712e44665386821acdf4b6 (patch)
treeeea4f2d999a46bf4b14b28869baaa5bfe3b70151 /source/index.haml
parentdab38952995a3bfc586a668b03981e39f8811472 (diff)
downloadmy_new_personal_website-33bca7246e9f5c3b61712e44665386821acdf4b6.tar.xz
my_new_personal_website-33bca7246e9f5c3b61712e44665386821acdf4b6.zip
added support for "updated" metadata in a blog post
Diffstat (limited to 'source/index.haml')
-rw-r--r--source/index.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/index.haml b/source/index.haml
index 7ccaabcf..b90b7209 100644
--- a/source/index.haml
+++ b/source/index.haml
@@ -10,7 +10,8 @@ disqus:
%h2= link_to(post.title, post.url, {:class=>"title"})
.meta
- author = (page.respond_to?(:author) && page.author) ? 'by: ' + page.author + ' |' : ''
- #{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")}
+ #{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")}
+ = (page.respond_to?(:updated) && page.updated) ? " | upated: #{page.updated}" : ''
= preserve rp(post.content)
- if page.respond_to?(:disqus) && page.disqus
- if post.data["comments_off"]