Permalink
Browse files

Show number of posts.

  • Loading branch information...
1 parent 885cb19 commit c02cb23b39c196087460be828a146b5f178d8593 @tiagosab committed Jun 10, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 index.html
View
@@ -3,13 +3,16 @@
title: Home
---
-<div id="posts">
+<div id="intro"><p>Welcome. There are currently {{ site.posts.size }}
+ posts here</p>
+</div>
-{% for post in site.posts offset: 0 limit: 10 %}
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
-{{ post.date | date_to_string }}
-{{ post.content }}
+<div id="posts">
+ {% for post in site.posts offset: 0 limit: 10 %}
+ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
+ {{ post.date | date_to_string }}
+ {{ post.content }}
{% endfor %}
</div>

0 comments on commit c02cb23

Please sign in to comment.