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
959 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">
<h2 class="title"><a href="${h.url_for_post(post)}">${post.title}</a></h2>
2010-01-15 20:55:30 +00:00
<div class="entry">
${h.literal(h.teaser(post.body, h.url_for_post(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>
<a href="${h.url_for_post(post)}" class="read-more">Read more</a>
2010-01-15 20:55:30 +00:00
% if len(post.comments) == 0:
<a href="${h.url_for_post(post)}#comments" class="comments">No comments</a>
2010-01-15 20:55:30 +00:00
% elif len(post.comments) == 1:
<a href="${h.url_for_post(post)}#comments" class="comments">1 comment</a>
2010-01-15 20:55:30 +00:00
% else:
<a href="${h.url_for_post(post)}#comments" class="comments">${len(post.comments)} comments</a>
2010-01-15 20:55:30 +00:00
% endif
</p>
</div>
% endfor