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 title: Donate
description: Help support Veilid by gifting a tax-deductible donation description: Help support Veilid by gifting a tax-deductible donation
menu:
main:
weight: 2
--- ---
<div class="row g-5"> <div class="row g-5">

View file

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

View file

@ -21,8 +21,8 @@
<div class="links"> <div class="links">
<ul class="list-inline no-comma m-0"> <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="#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="/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="/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/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> </ul>
</div> </div>

View file

@ -6,12 +6,20 @@
{% if loop.index == 1 %} {% if loop.index == 1 %}
{% else %} {% else %}
{% set active_link = (this_url in here) %} {% 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"> <li class="nav-item">
<a href="{{ this_url }}" class="nav-link{% if active_link %} active{% endif %}"> <a href="{{ this_url }}" class="nav-link{% if active_link %} active{% endif %}">
{{ item.name }} {{ item.name }}
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% endif %}
{%- endfor ~%} {%- endfor ~%}
</ol> </ol>
</nav> </nav>