feat: add navigation context processor and update header template
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
- Created `navigation` context processor to manage `active` context
- Integrated the processor into Django settings
- Simplified `header.html` by removing `{% with %}` for `active` management
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<!-- HEADER FRAGMENT -->
|
||||
{% with active=active|default:'' %}
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="header-top">
|
||||
@@ -73,4 +72,3 @@
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
{% endwith %}
|
||||
|
||||
Reference in New Issue
Block a user