Skip to content

Commit

Permalink
Add skiplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Jan 22, 2024
1 parent d7b0277 commit 07b2f54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content_manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ class ContentPage(Page):
index.SearchField("body"),
]

def get_context(self, request, *args, **kwargs):
context = super().get_context(request, *args, **kwargs)

context["skiplinks"] = [
{"link": "#content", "label": "Contenu"},
{"link": "#fr-navigation", "label": "Menu"},
]
return context


class MonospaceField(models.TextField):
"""
Expand Down

0 comments on commit 07b2f54

Please sign in to comment.