[bisq-network/bisq-website] New multilanguage system (#260)
wiz
notifications at github.com
Tue Oct 8 12:21:07 UTC 2019
wiz commented on this pull request.
> @@ -28,18 +34,37 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
-
- {% for item in site.data.main_nav.links %}
- <li class="nav-item {% if page.url == item.url | append: '/' %}current{% endif %}">
+
+ {% for item in site.data.main_nav[site.lang].links %}
+ {% if site.lang == "en" %}
+ <li class="nav-item {% if page.url == item.url | append: '/' %}current{% endif %}">
+ {% else %}
+ <!-- concatenating site.baseurl (mulilangual plugin variable) with page.url to match item.url and underline green current page -->
please remove this comment, it gets output into the page once per locale
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-website/pull/260#pullrequestreview-298720630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191008/d7c611df/attachment.html>
More information about the bisq-github
mailing list