Iterate footer link collection to display links

This commit is contained in:
Helen Chong 2024-09-14 22:50:36 +08:00
parent d32bcb5ef1
commit 64d7b6779a
1 changed files with 11 additions and 9 deletions

View File

@ -10,16 +10,18 @@
{% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %} {% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %}
href="/sitemap/ href="/sitemap/
">Site Map</a></li> ">Site Map</a></li>
{%- for link in collections["footer links"] -%}
<li><a <li><a
{% if currentUrl === "/changelogs/" %}aria-current="page"{% endif %} {% if link.url == page.url %}aria-current="page"{% endif %}
href="/changelogs/" href="{{ link.url }}"
>Changelogs</a></li> >{{ link.data.title }}</a></li>
{%- for statement in collections.statements -%} {%- endfor -%}
<li><a {%- for statement in collections.statements -%}
{% if entry.url == page.url %}aria-current="page"{% endif %} <li><a
href="{{ statement.url }}" {% if statement.url == page.url %}aria-current="page"{% endif %}
>{{ statement.data.title }}</a></li> href="{{ statement.url }}"
{%- endfor -%} >{{ statement.data.title }}</a></li>
{%- endfor -%}
</ul> </ul>
{% endblock %} {% endblock %}