diff options
author | ng0 <ng0@taler.net> | 2019-12-10 00:47:36 +0000 |
---|---|---|
committer | ng0 <ng0@taler.net> | 2019-12-10 00:47:36 +0000 |
commit | ca901e4b99a037553a5afe1beeb50255aeecb27c (patch) | |
tree | 0be1261a10486902002a73215dee1572912ebda7 /common/navigation.j2.inc | |
parent | 7bf827948000a632667a7664f7e4cc9953acdd7f (diff) | |
download | www-ca901e4b99a037553a5afe1beeb50255aeecb27c.tar.gz www-ca901e4b99a037553a5afe1beeb50255aeecb27c.tar.bz2 www-ca901e4b99a037553a5afe1beeb50255aeecb27c.zip |
merge new website generation.
Diffstat (limited to 'common/navigation.j2.inc')
-rw-r--r-- | common/navigation.j2.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/common/navigation.j2.inc b/common/navigation.j2.inc index c8a645bd..3e353737 100644 --- a/common/navigation.j2.inc +++ b/common/navigation.j2.inc @@ -1,12 +1,12 @@ {% macro navlink(site, text) -%} - <a class="nav-link {{ 'active' if filename == site else '' }}" - href="/{{ lang }}/{{ site }}"> - {{ text }} - </a> + <a class="nav-link {{ 'active' if filename == site else '' }}" + href="{{ url_localized(site) }}"> + {{ text }} + </a> {%- endmacro %} <nav class="navbar navbar-expand-lg navbar-light"> - <a class="navbar-brand taler_home" href="/{{ lang }}/index.html">Taler</a> + <a class="navbar-brand taler_home" href="{{ url_localized('index.html') }}">Taler</a> <button class="navbar-toggler" type="button" data-toggle="collapse" @@ -21,6 +21,7 @@ {{ navlink('features.html', _('Features')) }} {{ navlink('principles.html', _('Principles')) }} {{ navlink('docs.html', _('Docs')) }} + {{ navlink('news/index.html', _('News')) }} </div> <div class="nav-item dropdown"> @@ -30,7 +31,7 @@ data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> - <img src="{{ url('images/languageicon.svg') }}" + <img src="{{ url_static('images/languageicon.svg') }}" height="35" alt="[{{lang}}]" /> {{ lang_full }} [{{ lang }}] |