From 64d7b6779af00800b1e57ef7bf55db188df4b74f Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:50:36 +0800 Subject: [PATCH] Iterate footer link collection to display links --- src/_includes/main/footer.njk | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/_includes/main/footer.njk b/src/_includes/main/footer.njk index 22a92023..215fae04 100644 --- a/src/_includes/main/footer.njk +++ b/src/_includes/main/footer.njk @@ -10,16 +10,18 @@ {% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %} href="/sitemap/ ">Site Map + {%- for link in collections["footer links"] -%}
  • Changelogs
  • - {%- for statement in collections.statements -%} -
  • {{ statement.data.title }}
  • - {%- endfor -%} + {% if link.url == page.url %}aria-current="page"{% endif %} + href="{{ link.url }}" + >{{ link.data.title }} + {%- endfor -%} + {%- for statement in collections.statements -%} +
  • {{ statement.data.title }}
  • + {%- endfor -%} {% endblock %}