diff --git a/catalog/jobs/discover.py b/catalog/jobs/discover.py index f176fcff..62cd731e 100644 --- a/catalog/jobs/discover.py +++ b/catalog/jobs/discover.py @@ -88,8 +88,7 @@ class DiscoverGenerator(BaseJob): gallery_list.append( { "name": "popular_" + category.value, - "title": "" - + (category.label if category != ItemCategory.Book else _("Book")), + "category": category, "items": items, } ) diff --git a/catalog/templates/discover.html b/catalog/templates/discover.html index 37a9c1c5..04a7ea94 100644 --- a/catalog/templates/discover.html +++ b/catalog/templates/discover.html @@ -51,7 +51,7 @@ then call el.scrollBy({left:el.offsetWidth, behavior:'smooth'})"> -
{{ gallery.title }}
+
{{ gallery.category.label }}