[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Update footer template
commit 7f196bc35e6bc2555e9a13ee024f322840433954
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Mon Nov 25 18:11:44 2019 +0100
Update footer template
---
databags/links.ini | 3 +++
templates/footer.html | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/databags/links.ini b/databags/links.ini
index c6c5d77..8d977e9 100644
--- a/databags/links.ini
+++ b/databags/links.ini
@@ -140,3 +140,6 @@ press = https://www.torproject.org/tr/press/
about = https://www.torproject.org/zh-CN/about/history/
support = https://support.torproject.org/zh-CN
donate = https://donate.torproject.org/zh-CN
+jobs = https://www.torproject.org/zh-CN/about/jobs/
+contact = https://www.torproject.org/zh-CN/contact/
+press = https://www.torproject.org/zh-CN/press/
diff --git a/templates/footer.html b/templates/footer.html
index 646e073..9fadec2 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -36,9 +36,9 @@
{% if link %}
<a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
{% else %}
- {% set link = bag('links', this.alt, id) %}
- {% if link %}
- <a class="nav-link text-light" href="{{ link }}">
+ {% set local = bag('links', this.alt, id) %}
+ {% if local %}
+ <a class="nav-link text-light" href="{{ local }}">
{% else %}
<a class="nav-link text-light" href="{{ item.path }}">
{% endif %}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits