nav.html 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <ul class="nav">
  2. {% if site.lang == "en" %}
  3. <li><a {% if page.url == '/index.html' %}class="current"{% endif %}
  4. href="/">Home</a></li>
  5. <li><a {% if page.url contains '/about/' %}class="current"{% endif %}
  6. href="/about/">About</a></li>
  7. <li><a {% if page.url contains '/directory/' %}class="current"{% endif %}
  8. href="/directory/">Directory</a></li>
  9. <li><a {% if page.url contains '/summit/' %}class="current"{% endif %}
  10. href="/summit/">Summit</a></li>
  11. <li><a {% if page.url contains '/blog/' or page.url contains '/20' %}class="current"{% endif %}
  12. href="/blog/">Blog</a></li>
  13. <li><a {% if page.url contains '/join/' %}class="current"{% endif %}
  14. href="/join/">Join</a></li>
  15. {% else %}
  16. <li><a {% if page.url == '/index.html' %}class="current"{% endif %}
  17. href={{ site.lang|prepend:'"/'|append:'/"'}}>{% translate pages.home %}</a></li>
  18. <li><a {% if page.url contains '/about/' %}class="current"{% endif %}
  19. href={{ site.lang|prepend:'"/'|append:'/about/"'}}>{% translate pages.about %}</a></li>
  20. <li><a {% if page.url contains '/directory/' %}class="current"{% endif %}
  21. href={{ site.lang|prepend:'"/'|append:'/directory/"'}}>{% translate pages.directory %}</a></li>
  22. <li><a {% if page.url contains '/summit/' %}class="current"{% endif %}
  23. href={{ site.lang|prepend:'"/'|append:'/summit/"'}}>{% translate pages.summit %}</a></li>
  24. <li><a {% if page.url contains '/blog/' or page.url contains '/20' %}class="current"{% endif %}
  25. href={{ site.lang|prepend:'"/'|append:'/blog/"'}}>{% translate pages.blog %}</a></li>
  26. <li><a {% if page.url contains '/join/' %}class="current"{% endif %}
  27. href={{ site.lang|prepend:'"/'|append:'/join/"'}}>{% translate pages.join %}</a></li>
  28. {% endif %}
  29. </ul>