From e813ac6bb8cac0fbbdbe85f195540a23b7767bbf Mon Sep 17 00:00:00 2001 From: Alice Rhodes Date: Wed, 5 Mar 2025 12:01:52 -0500 Subject: [PATCH] Adding in the Donate button and fixing two links --- pages/donate.md | 3 +++ pages/index.md | 2 +- themes/veilid2025/layouts/_default/page.html.twig | 4 ++-- themes/veilid2025/layouts/partials/navigation.html.twig | 8 ++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/donate.md b/pages/donate.md index 0bff176..bdc25a6 100644 --- a/pages/donate.md +++ b/pages/donate.md @@ -1,6 +1,9 @@ --- title: Donate description: Help support Veilid by gifting a tax-deductible donation +menu: + main: + weight: 2 ---
diff --git a/pages/index.md b/pages/index.md index 1d3fa9d..3c36f00 100644 --- a/pages/index.md +++ b/pages/index.md @@ -4,7 +4,7 @@ description: Veilid is an open-source, distributed application framework. layout: frontpage menu: main: - weight: 10 + weight: 1 --- diff --git a/themes/veilid2025/layouts/_default/page.html.twig b/themes/veilid2025/layouts/_default/page.html.twig index 87fdae5..afe1458 100644 --- a/themes/veilid2025/layouts/_default/page.html.twig +++ b/themes/veilid2025/layouts/_default/page.html.twig @@ -21,8 +21,8 @@ diff --git a/themes/veilid2025/layouts/partials/navigation.html.twig b/themes/veilid2025/layouts/partials/navigation.html.twig index 885f71e..b8d0edb 100644 --- a/themes/veilid2025/layouts/partials/navigation.html.twig +++ b/themes/veilid2025/layouts/partials/navigation.html.twig @@ -6,11 +6,19 @@ {% if loop.index == 1 %} {% else %} {% set active_link = (this_url in here) %} + {% if "donate" in this_url %} + + {% else %} + {% endif %} {% endif %} {%- endfor ~%}