Skip to content

Commit

Permalink
only print 3 related posts
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Nov 22, 2008
1 parent 9113d84 commit 416abea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="related">
<h2>Related Posts</h2>
<ul class="posts">
{% for post in related_posts %}
{% for post in related_posts limit:3 %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 416abea

Please sign in to comment.