This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
old-scribeengine/scribeengine/templates/blog/index.mako

22 lines
935 B
Plaintext
Raw Normal View History

2010-01-15 20:55:30 +00:00
<%inherit file="/base.mako"/>
<%include file="/flash.mako"/>
2010-01-15 20:55:30 +00:00
% for post in c.posts:
<div class="post">
2010-01-18 20:16:46 +00:00
<h2 class="title"><a href="${h.full_url(post)}">${post.title}</a></h2>
2010-01-15 20:55:30 +00:00
<div class="entry">
2010-01-18 20:16:46 +00:00
${h.literal(h.teaser(post.body, h.full_url(post)))}
2010-01-15 20:55:30 +00:00
</div>
<p class="meta">
<span class="byline">Posted by ${post.user.nick} on ${post.created.strftime('%B %d, %Y')}</span>
2010-01-18 20:16:46 +00:00
<a href="${h.full_url(post)}" class="read-more">Read more</a>
2010-01-15 20:55:30 +00:00
% if len(post.comments) == 0:
2010-01-18 20:16:46 +00:00
<a href="${h.full_url(post)}#comments" class="comments">No comments</a>
2010-01-15 20:55:30 +00:00
% elif len(post.comments) == 1:
2010-01-18 20:16:46 +00:00
<a href="${h.full_url(post)}#comments" class="comments">1 comment</a>
2010-01-15 20:55:30 +00:00
% else:
2010-01-18 20:16:46 +00:00
<a href="${h.full_url(post)}#comments" class="comments">${len(post.comments)} comments</a>
2010-01-15 20:55:30 +00:00
% endif
</p>
</div>
% endfor