From a023afa7b92a8d9876786fbea5b2603f5a8b509b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:20:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- example/templates/base.html | 9 +++++++++ example/templates/basic.html | 3 +++ example/templates/bootstrap4.html | 3 +++ example/templates/bootstrap5.html | 3 +++ example/templates/extra_context.html | 3 +++ example/templates/navs/nested.html | 1 + example/templates/navs/tailwind_main.html | 1 + example/templates/nested.html | 3 +++ example/templates/permissions.html | 3 +++ example/templates/picocss.html | 3 +++ example/templates/tailwind.html | 2 ++ 11 files changed, 34 insertions(+) diff --git a/example/templates/base.html b/example/templates/base.html index 2ba7087..e73464d 100644 --- a/example/templates/base.html +++ b/example/templates/base.html @@ -1,18 +1,22 @@ {# djlint:off D018,H021,H031 #} {% load django_simple_nav %} + + {% block title %} django-simple-nav Demo {% endblock title %} + + {% block extra_head %} {% endblock extra_head %} + {% block nav %} {% django_simple_nav "navigation.BasicNav" %} {% endblock nav %} diff --git a/example/templates/bootstrap4.html b/example/templates/bootstrap4.html index affe979..bb8a44b 100644 --- a/example/templates/bootstrap4.html +++ b/example/templates/bootstrap4.html @@ -1,5 +1,7 @@ {% extends "base.html" %} + {% load django_simple_nav %} + {% block extra_head %} {% endblock extra_head %} + {% block nav %} {% django_simple_nav "navigation.Bootstrap4Nav" %} {% endblock nav %} diff --git a/example/templates/bootstrap5.html b/example/templates/bootstrap5.html index 05f6a6a..9440e6c 100644 --- a/example/templates/bootstrap5.html +++ b/example/templates/bootstrap5.html @@ -1,5 +1,7 @@ {% extends "base.html" %} + {% load django_simple_nav %} + {% block extra_head %} {% endblock extra_head %} + {% block nav %} {% django_simple_nav "navigation.Bootstrap5Nav" "navs/bootstrap5.html" %} {% endblock nav %} diff --git a/example/templates/extra_context.html b/example/templates/extra_context.html index e7f4548..9629a5c 100644 --- a/example/templates/extra_context.html +++ b/example/templates/extra_context.html @@ -1,5 +1,7 @@ {% extends "base.html" %} + {% load django_simple_nav %} + {% block extra_head %} {% endblock extra_head %} + {% block nav %} {% django_simple_nav "navigation.ExtraContextNav" %} {% endblock nav %} diff --git a/example/templates/navs/nested.html b/example/templates/navs/nested.html index 854858d..d640c9e 100644 --- a/example/templates/navs/nested.html +++ b/example/templates/navs/nested.html @@ -1,4 +1,5 @@ {% load django_simple_nav %} +