Fix templates

This commit is contained in:
hiro 2019-08-23 14:05:44 +02:00
parent f4e63da99d
commit bcc9aeb57b
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
[jobs]
path = https://www.torproject.org/about/jobs
path = https://www.torproject.org/about/jobs/
label = Jobs
[blog]
@ -7,9 +7,9 @@ path = https://blog.torproject.org
label = Blog
[contact]
path = https://www.torproject.org/contact
path = https://www.torproject.org/contact/
label = Contact
[press]
path = https://www.torproject.org/press
path = https://www.torproject.org/press/
label = Press

View File

@ -35,10 +35,10 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
{% elif item.label == "Documentation" or item.label == "Blog" %}
{% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
<a class="nav-link text-light" href="{{ item.path }}">
{% else %}
<a class="nav-link text-light" href="{{ item.path }}/{{ this.alt }}">
<a class="nav-link text-light" href="{{ item.path }}{{ this.alt }}">
{% endif %}
{{ _(item.label) }}
{% if this.is_child_of(item.path) %}

View File

@ -28,7 +28,7 @@
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link" href="{{ item.path|url(alt=this.alt) }}">
{% elif item.label == "Documentation" or item.label == "Blog" %}
{% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
<a class="nav-link" href="{{ item.path }}">
{% else %}
<a class="nav-link" href="{{ item.path }}{{ this.alt }}">