translatable masthead

This commit is contained in:
Plailect 2017-01-15 17:45:29 -05:00
parent b024cd13f6
commit 337d122590
2 changed files with 6 additions and 10 deletions

View file

@ -1,25 +1,21 @@
# main links links # translation urls should be /<locale>/<file> (i.e.: /es_ES/credits)
main: # see https://github.com/Plailect/Guide/tree/l10n/_pages for locale codes
# each language should be separated by a blank line
en_US:
- title: "FAQ" - title: "FAQ"
url: /faq url: /faq
- title: "Troubleshooting" - title: "Troubleshooting"
url: /troubleshooting url: /troubleshooting
- title: "Donations" - title: "Donations"
url: /donations url: /donations
- title: "Credits" - title: "Credits"
url: /credits url: /credits
- title: "Updating A9LH" - title: "Updating A9LH"
url: /updating-a9lh url: /updating-a9lh
- title: "Region Changing" - title: "Region Changing"
url: /region-changing url: /region-changing
- title: "NAND Size" - title: "NAND Size"
url: /nand-size url: /nand-size
- title: "Site Navigation" - title: "Site Navigation"
url: /site-navigation url: /site-navigation

View file

@ -4,7 +4,7 @@
<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 %} {% for link in site.data.navigation.en_US %}
{% if link.url contains 'http' %} {% if link.url contains 'http' %}
{% assign domain = '' %} {% assign domain = '' %}
{% else %} {% else %}