mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
improve translation system
jekyll now automatically generates sitemap alternate hreflang is now correctly handled by sitemaps language bar now gracefully associate with the translated equivalent of the page update README with updated translation guidelines and instructions
This commit is contained in:
parent
cbc0f9485e
commit
d1c90a6232
43 changed files with 173 additions and 236 deletions
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
layout: base-en
|
||||
id: index
|
||||
title: Bitcoin
|
||||
---
|
||||
<script>
|
||||
//Auto redirect to the appropriate language
|
||||
var langs={};{% for lang in site.langs %}{% if lang.langcode != page.langcode %}langs['{{ lang.langcode }}']=true;{% endif %}{% endfor %}
|
||||
var langs={};{% for lang in site.langs %}{% if lang[0] != page.lang %}langs['{{ lang[0] }}']=true;{% endif %}{% endfor %}
|
||||
var lang=(navigator.language)?navigator.language:navigator.userLanguage;
|
||||
lang=lang.split('_')[0];
|
||||
if(!langs[lang])lang='en';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue