mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Switch to transifex for translations
All strings, urls and anchors are now in a single yml files for each language Translated html pages are generated by a jekyll plugin based on unified templates Add a new sitemap generator plugin for the new translation structure Update french translations
This commit is contained in:
parent
0510dd8ecc
commit
f262d0e06f
112 changed files with 3529 additions and 3986 deletions
|
@ -1,103 +0,0 @@
|
|||
---
|
||||
lang: en
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
text: Individuals
|
||||
- id: bitcoin-for-businesses
|
||||
text: Businesses
|
||||
- id: bitcoin-for-developers
|
||||
text: Developers
|
||||
- id: bitcoin-for-enthusiasts
|
||||
text: Enthusiasts
|
||||
- id: bitcoin-for-press
|
||||
text: Press
|
||||
menu:
|
||||
- id: how-it-works
|
||||
text: How it works
|
||||
- id: vocabulary
|
||||
text: Vocabulary
|
||||
- id: resources
|
||||
text: Resources
|
||||
- id: community
|
||||
text: Community
|
||||
- id: development
|
||||
text: Development
|
||||
- id: foundation
|
||||
text: Foundation
|
||||
- id: about
|
||||
text: About
|
||||
button:
|
||||
wallet: Choose your wallet
|
||||
know: You need to know
|
||||
support: Support Bitcoin
|
||||
footer: © Bitcoin Project 2009–2013 Released under the <a href="http://creativecommons.org/licenses/MIT/" target="_blank">MIT license</a>
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>{{ page.title }}</title>
|
||||
{% lesscss main.less %}
|
||||
<script type="text/javascript" src="/js/main.js"></script>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
|
||||
</head>
|
||||
<body>
|
||||
{% if site.ALERT.all or site.ALERT[page.lang] %}
|
||||
{% if site.ALERT_CLASS.all %}{% assign class = site.ALERT_CLASS.all%}{% endif %}{% if site.ALERT_CLASS[page.lang] %}{% assign class = site.ALERT_CLASS[page.lang]%}{% endif %}
|
||||
{% if site.ALERT.all %}{% assign alert = site.ALERT.all%}{% endif %}{% if site.ALERT[page.lang] %}{% assign alert = site.ALERT[page.lang]%}{% endif %}
|
||||
<div class="alert-message {{ class }}">
|
||||
<div><div>{{ alert }}</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="head"><div>
|
||||
<select id="langselect" onchange="window.location=this.value;">
|
||||
{% for lang in site.langsorder %}{% if lang.id == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
|
||||
<option value="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}"{{ active }}>{{ site.langs[lang.id] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<ul id="lang">
|
||||
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
|
||||
<ul>
|
||||
{% for lang in site.langsorder %}{% if lang.id != page.lang %}
|
||||
<li><a href="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}">{{ site.langs[lang.id] }}</a></li>
|
||||
{% endif %}{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="menu">
|
||||
{% for link in page.menu %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
<div id="choose">
|
||||
<a href="/{{page.lang}}/{{site.section.choose-your-wallet[page.lang]}}"><img src="/img/but_start.svg" alt="{{page.button.wallet}}">{{page.button.wallet}}</a>
|
||||
</div>
|
||||
<div id="before">
|
||||
<a href="/{{page.lang}}/{{site.section.you-need-to-know[page.lang]}}"><img src="/img/but_warn.svg" alt="{{page.button.know}}">{{page.button.know}}</a>
|
||||
</div>
|
||||
<div id="support">
|
||||
<a href="/{{page.lang}}/{{site.section.support-bitcoin[page.lang]}}"><img src="/img/but_involve.svg" alt="{{page.button.support}}">{{page.button.support}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><div>{{page.footer}}</div></div>
|
||||
</div>
|
||||
<script type="text/javascript">svgfallback();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||
---
|
||||
lang: es
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
text: Personas
|
||||
- id: bitcoin-for-businesses
|
||||
text: Empresas
|
||||
- id: bitcoin-for-developers
|
||||
text: Desarrolladores
|
||||
- id: bitcoin-for-enthusiasts
|
||||
text: Entusiastas
|
||||
menu:
|
||||
- id: how-it-works
|
||||
text: Como funciona
|
||||
- id: vocabulary
|
||||
text: Vocabulario
|
||||
- id: resources
|
||||
text: Recursos
|
||||
- id: community
|
||||
text: Comunidad
|
||||
- id: development
|
||||
text: Desarrollo
|
||||
- id: foundation
|
||||
text: Fundación
|
||||
- id: about
|
||||
text: Acerca de
|
||||
button:
|
||||
wallet: Elige tu monedero
|
||||
know: Debes saber
|
||||
support: Apoya Bitcoin
|
||||
footer: © Bitcoin Project 2009–2013 Publicado bajo la <a href="http://creativecommons.org/licenses/MIT/" target="_blank">licencia MIT</a>
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>{{ page.title }}</title>
|
||||
{% lesscss main.less %}
|
||||
<script type="text/javascript" src="/js/main.js"></script>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
|
||||
</head>
|
||||
<body>
|
||||
{% if site.ALERT.all or site.ALERT[page.lang] %}
|
||||
{% if site.ALERT_CLASS.all %}{% assign class = site.ALERT_CLASS.all%}{% endif %}{% if site.ALERT_CLASS[page.lang] %}{% assign class = site.ALERT_CLASS[page.lang]%}{% endif %}
|
||||
{% if site.ALERT.all %}{% assign alert = site.ALERT.all%}{% endif %}{% if site.ALERT[page.lang] %}{% assign alert = site.ALERT[page.lang]%}{% endif %}
|
||||
<div class="alert-message {{ class }}">
|
||||
<div><div>{{ alert }}</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="head"><div>
|
||||
<select id="langselect" onchange="window.location=this.value;">
|
||||
{% for lang in site.langsorder %}{% if lang.id == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
|
||||
<option value="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}"{{ active }}>{{ site.langs[lang.id] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<ul id="lang">
|
||||
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
|
||||
<ul>
|
||||
{% for lang in site.langsorder %}{% if lang.id != page.lang %}
|
||||
<li><a href="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}">{{ site.langs[lang.id] }}</a></li>
|
||||
{% endif %}{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="menu">
|
||||
{% for link in page.menu %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
<div id="choose">
|
||||
<a href="/{{page.lang}}/{{site.section.choose-your-wallet[page.lang]}}"><img src="/img/but_start.svg" alt="{{page.button.wallet}}">{{page.button.wallet}}</a>
|
||||
</div>
|
||||
<div id="before">
|
||||
<a href="/{{page.lang}}/{{site.section.you-need-to-know[page.lang]}}"><img src="/img/but_warn.svg" alt="{{page.button.know}}">{{page.button.know}}</a>
|
||||
</div>
|
||||
<div id="support">
|
||||
<a href="/{{page.lang}}/{{site.section.support-bitcoin[page.lang]}}"><img src="/img/but_involve.svg" alt="{{page.button.support}}">{{page.button.support}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><div>{{page.footer}}</div></div>
|
||||
</div>
|
||||
<script type="text/javascript">svgfallback();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||
---
|
||||
lang: fr
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
text: Particuliers
|
||||
- id: bitcoin-for-businesses
|
||||
text: Entreprises
|
||||
- id: bitcoin-for-developers
|
||||
text: Développeurs
|
||||
- id: bitcoin-for-enthusiasts
|
||||
text: Passionnés
|
||||
menu:
|
||||
- id: how-it-works
|
||||
text: Comment ça marche
|
||||
- id: vocabulary
|
||||
text: Vocabulaire
|
||||
- id: resources
|
||||
text: Ressources
|
||||
- id: community
|
||||
text: Communauté
|
||||
- id: development
|
||||
text: Développement
|
||||
- id: foundation
|
||||
text: Fondation
|
||||
- id: about
|
||||
text: À propos
|
||||
button:
|
||||
wallet: Choisissez votre porte-monnaie
|
||||
know: Vous devez savoir
|
||||
support: Supporter Bitcoin
|
||||
footer: © Bitcoin Project 2009–2013 Publié sous la <a href="http://creativecommons.org/licenses/MIT/" target="_blank">licence MIT</a>
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>{{ page.title }}</title>
|
||||
{% lesscss main.less %}
|
||||
<script type="text/javascript" src="/js/main.js"></script>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
|
||||
</head>
|
||||
<body>
|
||||
{% if site.ALERT.all or site.ALERT[page.lang] %}
|
||||
{% if site.ALERT_CLASS.all %}{% assign class = site.ALERT_CLASS.all%}{% endif %}{% if site.ALERT_CLASS[page.lang] %}{% assign class = site.ALERT_CLASS[page.lang]%}{% endif %}
|
||||
{% if site.ALERT.all %}{% assign alert = site.ALERT.all%}{% endif %}{% if site.ALERT[page.lang] %}{% assign alert = site.ALERT[page.lang]%}{% endif %}
|
||||
<div class="alert-message {{ class }}">
|
||||
<div><div>{{ alert }}</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="head"><div>
|
||||
<select id="langselect" onchange="window.location=this.value;">
|
||||
{% for lang in site.langsorder %}{% if lang.id == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
|
||||
<option value="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}"{{ active }}>{{ site.langs[lang.id] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<ul id="lang">
|
||||
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
|
||||
<ul>
|
||||
{% for lang in site.langsorder %}{% if lang.id != page.lang %}
|
||||
<li><a href="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}">{{ site.langs[lang.id] }}</a></li>
|
||||
{% endif %}{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="menu">
|
||||
{% for link in page.menu %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
<div id="choose">
|
||||
<a href="/{{page.lang}}/{{site.section.choose-your-wallet[page.lang]}}"><img src="/img/but_start.svg" alt="{{page.button.wallet}}">{{page.button.wallet}}</a>
|
||||
</div>
|
||||
<div id="before">
|
||||
<a href="/{{page.lang}}/{{site.section.you-need-to-know[page.lang]}}"><img src="/img/but_warn.svg" alt="{{page.button.know}}">{{page.button.know}}</a>
|
||||
</div>
|
||||
<div id="support">
|
||||
<a href="/{{page.lang}}/{{site.section.support-bitcoin[page.lang]}}"><img src="/img/but_involve.svg" alt="{{page.button.support}}">{{page.button.support}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><div>{{page.footer}}</div></div>
|
||||
</div>
|
||||
<script type="text/javascript">svgfallback();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||
---
|
||||
lang: nl
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
text: Particulieren
|
||||
- id: bitcoin-for-businesses
|
||||
text: Bedrijven
|
||||
- id: bitcoin-for-developers
|
||||
text: Ontwikkelaars
|
||||
- id: bitcoin-for-enthusiasts
|
||||
text: Liefhebbers
|
||||
menu:
|
||||
- id: how-it-works
|
||||
text: Hoe het werkt
|
||||
- id: vocabulary
|
||||
text: Woordenlijst
|
||||
- id: resources
|
||||
text: Hulpmiddelen
|
||||
- id: community
|
||||
text: Community
|
||||
- id: development
|
||||
text: Ontwikkeling
|
||||
- id: foundation
|
||||
text: Stichting
|
||||
- id: about
|
||||
text: Over Bitcoin
|
||||
button:
|
||||
wallet: Kies uw portemonnee
|
||||
know: Wat u moet weten
|
||||
support: Help Bitcoin
|
||||
footer: © Bitcoin Project 2009–2013 Beschikbaar onder de <a href="http://creativecommons.org/licenses/MIT/" target="_blank">MIT-licentie</a>
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>{{ page.title }}</title>
|
||||
{% lesscss main.less %}
|
||||
<script type="text/javascript" src="/js/main.js"></script>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
|
||||
</head>
|
||||
<body>
|
||||
{% if site.ALERT.all or site.ALERT[page.lang] %}
|
||||
{% if site.ALERT_CLASS.all %}{% assign class = site.ALERT_CLASS.all%}{% endif %}{% if site.ALERT_CLASS[page.lang] %}{% assign class = site.ALERT_CLASS[page.lang]%}{% endif %}
|
||||
{% if site.ALERT.all %}{% assign alert = site.ALERT.all%}{% endif %}{% if site.ALERT[page.lang] %}{% assign alert = site.ALERT[page.lang]%}{% endif %}
|
||||
<div class="alert-message {{ class }}">
|
||||
<div><div>{{ alert }}</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="head"><div>
|
||||
<select id="langselect" onchange="window.location=this.value;">
|
||||
{% for lang in site.langsorder %}{% if lang.id == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
|
||||
<option value="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}"{{ active }}>{{ site.langs[lang.id] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<ul id="lang">
|
||||
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
|
||||
<ul>
|
||||
{% for lang in site.langsorder %}{% if lang.id != page.lang %}
|
||||
<li><a href="/{{ lang.id }}/{{ site.section[page.id][lang.id] }}">{{ site.langs[lang.id] }}</a></li>
|
||||
{% endif %}{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="menu">
|
||||
{% for link in page.menu %}{% assign id = link.id%}{% capture fullurl %}{{ '/' | append:page.lang | append:'/' | append:site.section[id][page.lang] | append:'.html' }}{% endcapture %}
|
||||
<li{% if page.url == fullurl %} class="active"{% endif %}><a href="/{{ page.lang }}/{{ site.section[id][page.lang] }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
<div id="choose">
|
||||
<a href="/{{page.lang}}/{{site.section.choose-your-wallet[page.lang]}}"><img src="/img/but_start.svg" alt="{{page.button.wallet}}">{{page.button.wallet}}</a>
|
||||
</div>
|
||||
<div id="before">
|
||||
<a href="/{{page.lang}}/{{site.section.you-need-to-know[page.lang]}}"><img src="/img/but_warn.svg" alt="{{page.button.know}}">{{page.button.know}}</a>
|
||||
</div>
|
||||
<div id="support">
|
||||
<a href="/{{page.lang}}/{{site.section.support-bitcoin[page.lang]}}"><img src="/img/but_involve.svg" alt="{{page.button.support}}">{{page.button.support}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><div>{{page.footer}}</div></div>
|
||||
</div>
|
||||
<script type="text/javascript">svgfallback();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
95
_layouts/base.html
Normal file
95
_layouts/base.html
Normal file
|
@ -0,0 +1,95 @@
|
|||
---
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
- id: bitcoin-for-businesses
|
||||
- id: bitcoin-for-developers
|
||||
- id: bitcoin-for-enthusiasts
|
||||
- id: bitcoin-for-press
|
||||
menu:
|
||||
- id: how-it-works
|
||||
- id: vocabulary
|
||||
- id: resources
|
||||
- id: community
|
||||
- id: development
|
||||
- id: foundation
|
||||
- id: about
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta property="og:image" content="http://bitcoin.org/img/opengraph.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>{% capture title %}{% translate title %}{% endcapture %}{% if title != '' %}{{ title }}{% else %}{{ page.title }}{% endif %}</title>
|
||||
{% lesscss main.less %}
|
||||
<script type="text/javascript" src="/js/main.js"></script>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="/img/logo_ios.png"/>
|
||||
</head>
|
||||
<body>
|
||||
{% if site.ALERT.all or site.ALERT[page.lang] %}
|
||||
{% if site.ALERT_CLASS.all %}{% assign class = site.ALERT_CLASS.all%}{% endif %}{% if site.ALERT_CLASS[page.lang] %}{% assign class = site.ALERT_CLASS[page.lang]%}{% endif %}
|
||||
{% if site.ALERT.all %}{% assign alert = site.ALERT.all%}{% endif %}{% if site.ALERT[page.lang] %}{% assign alert = site.ALERT[page.lang] %}{% endif %}
|
||||
<div class="alert-message {{ class }}">
|
||||
<div><div>{{ alert }}</div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="head"><div>
|
||||
<select id="langselect" onchange="window.location=this.value;">
|
||||
{% for lang in site.langsorder %}{% if lang.id == page.lang %}{% assign active = ' selected="selected"'%}{% else %}{% assign active = ''%}{% endif %}
|
||||
<option value="/{{ lang.id }}/{% translate {{page.id}} url {{lang.id}} %}"{{ active }}>{{ site.langs[lang.id] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<ul id="lang">
|
||||
<li><a href="#" onclick="return false;">{{ site.langs[page.lang] }}</a>
|
||||
<ul>
|
||||
{% for lang in site.langsorder %}{% if lang.id != page.lang %}
|
||||
<li><a href="/{{ lang.id }}/{% translate {{page.id}} url {{lang.id}} %}">{{ site.langs[lang.id] }}</a></li>
|
||||
{% endif %}{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture url %}/{{ page.lang }}/{% translate {{id}} url %}{% endcapture %}
|
||||
{%if id == 'bitcoin-for-press'%}
|
||||
{% case page.lang %}
|
||||
{% when 'es' %}
|
||||
{% when 'fr' %}
|
||||
{% when 'nl' %}
|
||||
{% else %}
|
||||
<li{% if page.id == id %} class="active"{% endif %}><a href="{{ url }}">{% translate menu-{{id}} layout %}</a></li>
|
||||
{% endcase %}
|
||||
{% else %}
|
||||
<li{% if page.id == id %} class="active"{% endif %}><a href="{{ url }}">{% translate menu-{{id}} layout %}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="menu">
|
||||
{% for link in page.menu %}{% assign id = link.id%}{% capture url %}/{{ page.lang }}/{% translate {{id}} url %}{% endcapture %}
|
||||
<li{% if page.id == id %} class="active"{% endif %}><a href="{{ url }}">{% translate menu-{{id}} layout %}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="rightbox"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
<div id="choose">
|
||||
<a href="/{{ page.lang }}/{% translate choose-your-wallet url %}"><img src="/img/but_start.svg" alt="Icon">{% translate button-wallet layout %}</a>
|
||||
</div>
|
||||
<div id="before">
|
||||
<a href="/{{ page.lang }}/{% translate you-need-to-know url %}"><img src="/img/but_warn.svg" alt="Icon">{% translate button-know layout %}</a>
|
||||
</div>
|
||||
<div id="support">
|
||||
<a href="/{{ page.lang }}/{% translate support-bitcoin url %}"><img src="/img/but_involve.svg" alt="Icon">{% translate button-support layout %}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><div>{% translate footer layout %}</div></div>
|
||||
</div>
|
||||
<script type="text/javascript">svgfallback();</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
layout: base-en
|
||||
layout: base
|
||||
lang: en
|
||||
---
|
||||
<h1>{{ page.title }} <small>{{ page.date | date:"%e %B %Y" }}</small></h1>
|
||||
{{ content }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
layout: base-en
|
||||
layout: base
|
||||
lang: en
|
||||
---
|
||||
<div class="versiontext">
|
||||
<h1>{{ page.title }} <small>{{ page.date | date:"%e %B %Y" }}</small></h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue