Fixed a problem on the tags page.
This commit is contained in:
parent
daeb272c17
commit
72c107e817
@ -74,7 +74,7 @@ class BlogController(BaseController):
|
||||
def tag(self, id=None):
|
||||
if not id:
|
||||
h.redirect_to('/')
|
||||
c.tag = Session.query(Tag).filter_by(url=id).first()
|
||||
c.tag = Session.query(Tag).filter_by(url=id).all()
|
||||
if not c.tag:
|
||||
h.redirect_to('/')
|
||||
c.page_title = u'Blog posts with tag: %s' % c.tag.name
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="post">
|
||||
<h3 class="title"><a href="${h.url_for_post(post)}">${post.title}</a></h3>
|
||||
<div class="entry">
|
||||
${h.literal(h.teaser(post.body, h.url_for_post(post)))}
|
||||
${h.literal(h.teaser(post.body))}
|
||||
</div>
|
||||
<p class="meta">
|
||||
<span class="byline">Posted by ${post.user.nick} on ${post.created.strftime('%B %d, %Y')}</span>
|
||||
|
Reference in New Issue
Block a user