commit d118c85c01fe941b8afd6b2ddd98cb261d344e25 Author: hiro hiro@torproject.org Date: Mon Feb 11 17:47:12 2019 +0100
Use footer menu --- databags/menu_footer+en.ini | 15 +++++++++++++++ databags/menu_footer+es.ini | 15 +++++++++++++++ databags/menu_footer+fr.ini | 15 +++++++++++++++ templates/footer.html | 2 +- 4 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/databags/menu_footer+en.ini b/databags/menu_footer+en.ini new file mode 100644 index 0000000..3329c0a --- /dev/null +++ b/databags/menu_footer+en.ini @@ -0,0 +1,15 @@ +[jobs] +path = /about/jobs +label = Jobs + +[blog] +path = https://blog.torproject.org +label = Blog + +[contact] +path = /contact +label = Contact + +[press] +path = /press +label = Press diff --git a/databags/menu_footer+es.ini b/databags/menu_footer+es.ini new file mode 100644 index 0000000..3329c0a --- /dev/null +++ b/databags/menu_footer+es.ini @@ -0,0 +1,15 @@ +[jobs] +path = /about/jobs +label = Jobs + +[blog] +path = https://blog.torproject.org +label = Blog + +[contact] +path = /contact +label = Contact + +[press] +path = /press +label = Press diff --git a/databags/menu_footer+fr.ini b/databags/menu_footer+fr.ini new file mode 100644 index 0000000..3329c0a --- /dev/null +++ b/databags/menu_footer+fr.ini @@ -0,0 +1,15 @@ +[jobs] +path = /about/jobs +label = Jobs + +[blog] +path = https://blog.torproject.org +label = Blog + +[contact] +path = /contact +label = Contact + +[press] +path = /press +label = Press diff --git a/templates/footer.html b/templates/footer.html index 3d1dc87..4aa7aa2 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -23,7 +23,7 @@ </div> <div class="col-sm-2 mt-5 d-none d-sm-block"> <ul class="nav flex-column mt-sm-5"> - {% set menubag = 'menu+' + this.alt %} + {% set menubag = 'menu_footer+' + this.alt %} {% for id, item in bag(menubag).items() %} <li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}> <a class="nav-link text-light" href="{{ item.path }}">{{ item.label }}