make masthead translatable
This commit is contained in:
parent
488d5963e4
commit
a07f02fc80
2 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue