make masthead translatable

This commit is contained in:
Plailect 2017-01-15 19:00:18 -05:00
parent 488d5963e4
commit a07f02fc80
No known key found for this signature in database
GPG key ID: F8A415C5EA602A41
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,9 @@
<nav id="site-nav" class="greedy-nav"> <nav id="site-nav" class="greedy-nav">
<ul class="visible-links"> <ul class="visible-links">
<li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ '/' | absolute_url }}">{{ site.title }}</a></li> <li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ '/' | absolute_url }}">{{ site.title }}</a></li>
{% for link in site.data.navigation.main %} {% assign split_path = page.path | split: "/" %}
{% assign locale = split_path[1] %}
{% for link in site.data.navigation[locale].main %}
{% if link.url contains 'http' %} {% if link.url contains 'http' %}
{% assign domain = '' %} {% assign domain = '' %}
{% else %} {% else %}