Skip to content

Commit 44013cb

Browse files
authored
Update layout.html
1 parent 3061a5a commit 44013cb

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

templates/layout.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{%- macro menu_item(identifier) -%}
2-
{%- set identifier_url = '/' + identifier -%}
2+
{%- set identifier_url = ('/' + identifier).replace('/donate', '/membership') -%}
33
{%- set trans_url = identifier_url|url(alt=this.alt) -%}
44
{%- set this_is_child = this.is_child_of(identifier_url) -%}
55
<li class="nav-item{% if this_is_child %} active{% endif %}">
@@ -70,12 +70,7 @@
7070
{{ menu_item('community') }}
7171
{{ menu_item('contributing') }}
7272
{{ menu_item('news') }}
73-
<li class="nav-item">
74-
{%- set this_is_membership_child = this.is_child_of('/membership') -%}
75-
<a class="nav-link{% if this_is_membership_child %} active{% endif %}" href={{ "/membership"|url(alt=this.alt) }}>
76-
{{ "donate"|trans("menu") }}
77-
</a>
78-
</li>
73+
{{ menu_item('donate') }}
7974
</ul>
8075
<ul class="nav navbar-nav navbar-right">
8176
{%- if this.alt == "en" -%}

0 commit comments

Comments
 (0)