diff --git a/scribeengine/controllers/blog.py b/scribeengine/controllers/blog.py index 3f87f02..2d43e18 100644 --- a/scribeengine/controllers/blog.py +++ b/scribeengine/controllers/blog.py @@ -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 diff --git a/scribeengine/templates/blog/tag.mako b/scribeengine/templates/blog/tag.mako index 6fd917a..2d566d7 100644 --- a/scribeengine/templates/blog/tag.mako +++ b/scribeengine/templates/blog/tag.mako @@ -5,7 +5,7 @@

${post.title}

- ${h.literal(h.teaser(post.body, h.url_for_post(post)))} + ${h.literal(h.teaser(post.body))}