Move currentUrl variable

This commit is contained in:
Helen Chong 2024-04-18 13:25:26 +08:00
parent 994b6bd156
commit e6778f4050
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
{% set currentUrl %}{{ page.url }}{% endset %}
<nav class="navbar">
<ul class="nav__menu">
{% set currentUrl %}{{ page.url }}{% endset %}
{% for page in collections.pages %}
<li>
<a href="{{ page.url }}" {% if currentUrl === page.url %}aria-current="page"{% endif %}>