Skip to content

Commit

Permalink
✨ breadcrumbs can take context
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Feb 19, 2024
1 parent a68d1cc commit ab4093c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fragdenstaat_de/fds_blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_context_data(self, object=None):
]
return ctx

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
breadcrumbs = get_base_breadcrumb()

if self.object.categories.exists():
Expand Down Expand Up @@ -154,7 +154,7 @@ def get_context_data(self, **kwargs):
context["featured"] = self.featured
return context

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
return get_base_breadcrumb()


Expand Down Expand Up @@ -184,7 +184,7 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
return context

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
return get_base_breadcrumb() + [(_("Archive"))]


Expand All @@ -201,7 +201,7 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
return context

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
return get_base_breadcrumb() + [(self.tag.name)]


Expand All @@ -220,7 +220,7 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
return context

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
return get_base_breadcrumb() + [(self.author.get_full_name())]


Expand Down Expand Up @@ -256,7 +256,7 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
return context

def get_breadcrumbs(self):
def get_breadcrumbs(self, context):
return get_base_breadcrumb() + [(self.category.title)]


Expand Down

0 comments on commit ab4093c

Please sign in to comment.