agilentics / boiler
1
2
3
4
5
6
7
8
{# One leaf in the tree. Its own file because it is drawn in two places -
   inside a category and inside the Ungrouped group - and two copies of a link
   are two places for the `here` marking to drift. #}
{%- set href = "/c/" ~ item.slug -%}
<a class="navitem navleaf{% if href == request.path %} here{% endif %}"
   href="{{ href }}"
   data-slug="{{ item.slug }}"
   {% if href == request.path %}aria-current="page"{% endif %}>{{ item.name }}</a>