Adding in the Donate button and fixing two links

This commit is contained in:
Alice Rhodes 2025-03-05 12:01:52 -05:00
parent f5ef8b0280
commit e813ac6bb8
4 changed files with 14 additions and 3 deletions

View file

@ -1,6 +1,9 @@
---
title: Donate
description: Help support Veilid by gifting a tax-deductible donation
menu:
main:
weight: 2
---
<div class="row g-5">

View file

@ -4,7 +4,7 @@ description: Veilid is an open-source, distributed application framework.
layout: frontpage
menu:
main:
weight: 10
weight: 1
---

View file

@ -21,8 +21,8 @@
<div class="links">
<ul class="list-inline no-comma m-0">
<li class="list-inline-item"><a href="#content">Skip to Content</a></li>
<li class="list-inline-item"><a href="/web-text"><img src="/img/fonts.svg" alt="Icon for Font Size" class="d-inline"><span class="d-none d-md-inline">Customize Text</span></a></li>
<li class="list-inline-item"><a href="/translations"><img src="/img/translate.svg" alt="Icon for Translations" class="d-inline"><span class="d-none d-md-inline">Translations</span></a></li>
<li class="list-inline-item"><a href="/accessibility/web-text"><img src="/img/fonts.svg" alt="Icon for Font Size" class="d-inline"><span class="d-none d-md-inline">Customize Text</span></a></li>
<li class="list-inline-item"><a href="/accessibility/translations"><img src="/img/translate.svg" alt="Icon for Translations" class="d-inline"><span class="d-none d-md-inline">Translations</span></a></li>
</ul>
</div>

View file

@ -6,11 +6,19 @@
{% if loop.index == 1 %}
{% else %}
{% set active_link = (this_url in here) %}
{% if "donate" in this_url %}
<li class="nav-item">
<a href="{{ this_url }}" class="btn btn-success">
&nbsp; {{ item.name }} &nbsp;
</a>
</li>
{% else %}
<li class="nav-item">
<a href="{{ this_url }}" class="nav-link{% if active_link %} active{% endif %}">
{{ item.name }}
</a>
</li>
{% endif %}
{% endif %}
{%- endfor ~%}
</ol>