From 4bafdcc15f306b75f5d295e21d0d8970a6d16a84 Mon Sep 17 00:00:00 2001 From: erciccione Date: Thu, 24 Sep 2020 13:20:23 +0200 Subject: [PATCH] Header: Refactor navigation menu to use i18n plugin --- _i18n/en.yml | 15 +++++- _includes/header.html | 118 +++++++++++++++++++++++++++++++----------- 2 files changed, 101 insertions(+), 32 deletions(-) diff --git a/_i18n/en.yml b/_i18n/en.yml index 21dfc0f6..554db9bb 100644 --- a/_i18n/en.yml +++ b/_i18n/en.yml @@ -25,7 +25,6 @@ global: titles: index: Home whatismonero: What is Monero (XMR)? - using: Using Monero accepting: Accepting Monero contributing: Improving Monero mining: Mining Monero @@ -34,7 +33,6 @@ titles: allposts: All Blog Posts team: Monero Team hangouts: Hangouts - events: Events sponsorships: Sponsorships merchants: Merchants & Services about: About Monero @@ -50,6 +48,19 @@ titles: blogbytag: Blog library: Library +navigation: + getstarted: Get Started + whatis: What is Monero? + accepting: Accepting + contributing: Contributing + mining: Mining + community: Community + team: Team + merchants: Merchants + resources: Resources + about: About + mrl: Research Lab + index: page_title: "Monero - secure, private, untraceable" diff --git a/_includes/header.html b/_includes/header.html index 31cfd2fc..f344c8b8 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,27 +1,59 @@ -{%assign counter=0%}
- +
- {% for item in site.data.lang[site.lang].navigation %}
- {% endfor %} + + + +