Iterate footer link collection to display links
This commit is contained in:
parent
d32bcb5ef1
commit
64d7b6779a
|
@ -10,13 +10,15 @@
|
||||||
{% 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>
|
||||||
|
{%- endfor -%}
|
||||||
{%- for statement in collections.statements -%}
|
{%- for statement in collections.statements -%}
|
||||||
<li><a
|
<li><a
|
||||||
{% if entry.url == page.url %}aria-current="page"{% endif %}
|
{% if statement.url == page.url %}aria-current="page"{% endif %}
|
||||||
href="{{ statement.url }}"
|
href="{{ statement.url }}"
|
||||||
>{{ statement.data.title }}</a></li>
|
>{{ statement.data.title }}</a></li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Loading…
Reference in New Issue