瀏覽代碼

Fix breadcrumbs missing on blog tag index

Thibaud Colas 1 年之前
父節點
當前提交
0e9ef17a2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bakerydemo/blog/models.py

+ 1 - 1
bakerydemo/blog/models.py

@@ -188,7 +188,7 @@ class BlogIndexPage(RoutablePageMixin, Page):
             return redirect(self.url)
 
         posts = self.get_posts(tag=tag)
-        context = {"tag": tag, "posts": posts}
+        context = {"self": self, "tag": tag, "posts": posts}
         return render(request, "blog/blog_index_page.html", context)
 
     def serve_preview(self, request, mode_name):