Display relative post times instead of absolute

This commit is contained in:
Trever Fischer
2012-04-17 13:23:50 -04:00
parent 46a6c47127
commit 4d8d3ff768
4 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
<div class='item news-item'>
<h2><a href="{{news.get_absolute_url}}">{{news.title}}</a></h2>
<div class="byline">By <span itemprop="author">{{news.author}}</span> <div class="avatar">{% avatar news.author %}</div></div>
<div class="dateline">On {{news.created}}</div>
<div class="dateline">Posted {{news.created|timesince}} ago</div>
<div class="content" itemprop="articleBody">
{{news.body|truncatewords:"100"|markdown}}
</div>