source/index.haml
82d0251d
 ---
d8d51719
 layout: default
82d0251d
 title: Blog
eefe29e5
 author: 
 disqus: 
82d0251d
 ---
 .blog
   - site.posts.sort_by(&:date).reverse[0..9].each_with_index do |post,index|
77bb406a
     .article
       %h2= link_to(post.title, post.url, {:class=>"title"})
eefe29e5
       .meta
         - author = (page.respond_to?(:author) && page.author) ? 'by: ' + page.author + ' |' : ''
33bca724
         #{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")}
38fd8d6e
         = (page.respond_to?(:updated) && page.updated) ? " | updated: #{page.updated}" : ''
89909064
       = preserve rp(post.content)
eefe29e5
       - if page.respond_to?(:disqus) && page.disqus
         - if post.data["comments_off"]
           %em.comments_off Comments disabled
         - else
           %a(href="#{post.url}/#disqus_thread")Comments
77bb406a
   .footer
38fd8d6e
     %a(href="/archives.html" title="archives") « Blog Archives