Move currentUrl variable

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

View File

@ -1,7 +1,7 @@
{% set currentUrl %}{{ page.url }}{% endset %}
<footer class="footer">
<p>Made with ♥ by {{ sitemeta.siteAuthor.name }} since <time>11 September 2022</time></p>
{% set currentUrl %}{{ page.url }}{% endset %}
<ul class="footer__links">
<li>
<a {% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %} href="/sitemap/">Site Map</a>