summaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-04 16:52:42 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2025-03-11 20:40:52 +0100
commitf87e1dbd3c06fe9b1100ddcd06394de5ae338577 (patch)
treee0ded7d5f3da9f2fd8acdb72e646a881a63a239b /blog
parent24a4edccd0fc100a7154155f05ced26ca6290a1f (diff)
Fixed page header structure and used semantic HTML.
Diffstat (limited to 'blog')
-rw-r--r--blog/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/blog/views.py b/blog/views.py
index b27236af..d26d434d 100644
--- a/blog/views.py
+++ b/blog/views.py
@@ -12,6 +12,7 @@ from .models import Entry, Event
class BlogViewMixin:
date_field = "pub_date"
paginate_by = 10
+ banner_is_title = True
def get_allow_future(self):
return self.request.user.is_staff
@@ -28,6 +29,7 @@ class BlogViewMixin:
events_queryset = Event.objects.future().published()
context["events"] = events_queryset[:3]
+ context["banner_is_title"] = self.banner_is_title
return context
@@ -49,4 +51,4 @@ class BlogDayArchiveView(BlogViewMixin, DayArchiveView):
class BlogDateDetailView(BlogViewMixin, DateDetailView):
- pass
+ banner_is_title = False