2009-10-19 00:07:36 +00:00
|
|
|
---
|
2009-10-19 01:10:45 +00:00
|
|
|
layout: default
|
2009-10-19 00:07:36 +00:00
|
|
|
title: Blog
|
2010-03-10 18:23:30 +00:00
|
|
|
author:
|
|
|
|
disqus:
|
2009-10-19 00:07:36 +00:00
|
|
|
---
|
|
|
|
.blog
|
|
|
|
- site.posts.sort_by(&:date).reverse[0..9].each_with_index do |post,index|
|
2009-10-21 16:39:53 +00:00
|
|
|
.article
|
|
|
|
%h2= link_to(post.title, post.url, {:class=>"title"})
|
2010-03-10 18:23:30 +00:00
|
|
|
.meta
|
|
|
|
- author = (page.respond_to?(:author) && page.author) ? 'by: ' + page.author + ' |' : ''
|
2010-03-10 18:26:47 +00:00
|
|
|
#{author} posted: #{post.date.strftime("%B #{post.date.day.ordinalize}, %Y")}
|
|
|
|
= (page.respond_to?(:updated) && page.updated) ? " | upated: #{page.updated}" : ''
|
2009-11-12 01:49:17 +00:00
|
|
|
= preserve rp(post.content)
|
2010-03-10 18:23:30 +00:00
|
|
|
- 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
|
2009-10-21 16:39:53 +00:00
|
|
|
.footer
|
|
|
|
%a(href="/archives.html" title="archives") « Blog Archives
|