{% load django_fundamentals %}{% comment %} NAV ITEM MOLECULE — A SINGLE SIDEBAR LINK WITH ACTIVE STATE. USAGE: {% include "django_fundamentals/molecules/nav_item.html" with item=entry %} PARAMETERS: item -- dict with keys: label, url_name, icon (see DJANGO_FUNDAMENTALS_SIDEBAR_NAV) {% endcomment %} {% is_active item.url_name as active %} {% nav_url item.url_name as target %} {% if target %} {% if item.icon %} {% include "django_fundamentals/atoms/icon.html" with name=item.icon %} {% endif %} {{ item.label }} {% endif %}