1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-09-08 15:40:48 +02:00

make masthead translatable

This commit is contained in:
Plailect
2017-01-15 19:00:18 -05:00
parent 488d5963e4
commit a07f02fc80
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,9 @@
<nav id="site-nav" class="greedy-nav">
<ul class="visible-links">
<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' %}
{% assign domain = '' %}
{% else %}