Merge branch 'tpoi336-donate-link' into 'main'

Remove h4 tag in donate link for proper semantics

Closes tpo#336

See merge request tpo/web/lego!90
This commit is contained in:
kezzle 2023-11-30 14:10:58 +00:00
commit cb9c5cae79

View File

@ -15,9 +15,9 @@
{% set link = bag('links', this.alt, 'donate') %}
{% if link %}
<h4 class="pl-2 pr-2"><a href="{{ link }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4>
<a href="{{ link }}" title="{{ _("Donate") }}" class="px-2 h4"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a>
{% else %}
<h4 class="pl-2 pr-2"><a href="https://www.torproject.org/donate/{{ this.alt }}" title="{{ _("Donate") }}"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a></h4>
<a href="https://www.torproject.org/donate/{{ this.alt }}" title="{{ _("Donate") }}" class="px-2 h4"><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></a>
{% endif %}
<label for="nav-toggle">