aboutsummaryrefslogtreecommitdiff
path: root/source/index.haml
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2010-03-10 12:23:30 -0600
committerB Mathis <brandon@imathis.com>2010-03-10 12:23:30 -0600
commiteefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3 (patch)
treee96d83dbea8e1a323a7705f9a3060f5cd6e7eb02 /source/index.haml
parent1957c1249917c362b3d5ae96f36f2c3d81aa5e58 (diff)
downloadmy_new_personal_website-eefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3.tar.xz
my_new_personal_website-eefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3.zip
now Octopress uses partials
Diffstat (limited to '')
-rw-r--r--source/index.haml16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/index.haml b/source/index.haml
index 796b81b6..7ccaabcf 100644
--- a/source/index.haml
+++ b/source/index.haml
@@ -1,17 +1,21 @@
---
layout: default
title: Blog
+author:
+disqus:
---
.blog
- site.posts.sort_by(&:date).reverse[0..9].each_with_index do |post,index|
.article
%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")}
= preserve rp(post.content)
- - if page.respond_to? :disqus_short_name
- .footer
- - if post.data["comments_off"]
- %em.comments_off Comments disabled
- - else
- %a(href="#{post.url}/#disqus_thread")Comments
+ - 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
.footer
%a(href="/archives.html" title="archives") &laquo; Blog Archives \ No newline at end of file