feat: make Nav and Profile menu dynamic
This commit is contained in:
9
crates/app/templates/layout/nav/nav-menu-items.html
Normal file
9
crates/app/templates/layout/nav/nav-menu-items.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% for item in items %}
|
||||
<a
|
||||
href="#{{ item.id }}"
|
||||
class="{{ Self::get_classes(self, item.current) }}"
|
||||
aria-current="{% if item.current %}page{% endif %}"
|
||||
>
|
||||
{{ item.label }}
|
||||
</a>
|
||||
{% endfor %}
|
Reference in New Issue
Block a user