diff options
author | luxagraf <sng@luxagraf.net> | 2023-12-19 10:16:05 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-12-19 10:16:05 -0500 |
commit | 6d6c2d29808dab7a755021c831b4aa95bf18c7a2 (patch) | |
tree | c4da241f5c59189226222bf7c12435b5a57b0c2b /app/posts/views/jrnl_views.py | |
parent | a1b3df43ec6ed5c88613ebf5a8db8a7d5b4856ed (diff) |
jrnl: cleaned up year view template
Diffstat (limited to 'app/posts/views/jrnl_views.py')
-rw-r--r-- | app/posts/views/jrnl_views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/posts/views/jrnl_views.py b/app/posts/views/jrnl_views.py index bb50f6f..8652e1d 100644 --- a/app/posts/views/jrnl_views.py +++ b/app/posts/views/jrnl_views.py @@ -74,6 +74,11 @@ class JrnlYearArchiveView(YearArchiveView): allow_future = True template_name = "posts/jrnl_date.html" + def get_context_data(self, **kwargs): + context = super(JrnlYearArchiveView, self).get_context_data(**kwargs) + context['breadcrumbs'] = ['jrnl', self.kwargs['year']] + context['crumb_url'] = reverse('jrnl:list') + return context class JrnlMonthArchiveView(MonthArchiveView): queryset = Post.objects.filter(status__exact=1).filter(post_type=PostType.JRNL).select_related() |