Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Highlight Active Links in Django Website

{% url 'about' as url %}
<li class="nav-item {% if request.path == url %}active{% endif %}">
  <a class="nav-link" href="{{ url }}">About</a>
</li>
Source by valerymelou.com #
 
PREVIOUS NEXT
Tagged: #Highlight #Active #Links #Django #Website
ADD COMMENT
Topic
Name
2+6 =