forked from Cobra-Bitcoin/bitcoin.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement multilanguage new improved clients list page update history and statistics in the "about" page add "Some things you need to know" page add "Support Bitcoin" page add a contextual presentation for each category of users (individuals, organizations, developers and enthusiasts) add a short and concise "how it works" page add a "vocabulary" page for Bitcoin technical words definitions give more visibility for the foundation new website design and layout
- Loading branch information
Showing
191 changed files
with
9,435 additions
and
2,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z ${1} || -z ${2} ]]; then | ||
echo 'You must provide language code and language name. Ex : ./_contrib/translate fr "Français"' | ||
exit | ||
fi | ||
|
||
cp -R en ${1} | ||
cp _layouts/base-en.html _layouts/base-${1}.html | ||
sed -i "s_layout: base-en_layout: base-${1}_g" ${1}/*.html | ||
sed -i "s_href=\"/en/_href=\"/${1}/_g" ${1}/*.html | ||
sed -i "s_src=\"/en/_src=\"/${1}/_g" ${1}/*.html | ||
sed -i "s_href=\"/en/_href=\"/${1}/_g" _layouts/base-${1}.html | ||
sed -i "s_src=\"/en/_src=\"/${1}/_g" _layouts/base-${1}.html | ||
sed -i "s_langcode: en_langcode: ${1}_g" _layouts/base-${1}.html | ||
sed -i "s_langtext: English_langtext: ${2}_g" _layouts/base-${1}.html | ||
sed -i "s/ALERT_CLASS_en/ALERT_CLASS_${1}/g" _layouts/base-${1}.html | ||
sed -i "s/ALERT_en/ALERT_${1}/g" _layouts/base-${1}.html | ||
sed -i "/langcode: ${1}/d" _config.yml | ||
sed -i "/langtext: ${2}/d" _config.yml | ||
sed -i "/langs:/a - langtext: ${2}" _config.yml | ||
sed -i "/langs:/a - langcode: ${1}" _config.yml | ||
sed -i "s_- langtext: ${2}_ langtext: ${2}_g" _config.yml |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
#Should be called each time a page is updated, added or removed to update sitemaps | ||
echo '<?xml version="1.0" encoding="UTF-8"?>' > sitemap.xml | ||
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' >> sitemap.xml | ||
for l in *; do | ||
if [[ ! -d $l || $l == "_site" || $l == "_layouts" ]]; then | ||
continue | ||
fi | ||
files=`find ${l} -name "*.html" -type f` | ||
for f in $files; do | ||
c=(${f//"."/ }) | ||
c=${c[@]:0:1} | ||
if [[ $c == "${l}/index" ]]; then | ||
c=(${c//"/"/ }) | ||
c="${c[@]:0:1}/" | ||
fi | ||
t=$(stat -c "%y" ${f}) | ||
t=(${t//" "/ }) | ||
t=${t[@]:0:1} | ||
echo "<url>" >> sitemap.xml | ||
echo " <loc>http://bitcoin.org/${c}</loc>" >> sitemap.xml | ||
echo " <lastmod>${t}</lastmod>" >> sitemap.xml | ||
echo "</url>" >> sitemap.xml | ||
done | ||
done | ||
echo '</urlset>' >> sitemap.xml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
langcode: en | ||
langtext: English | ||
menufor: | ||
- text: Individuals | ||
url: /en/bitcoin-for-individuals | ||
- text: Organizations | ||
url: /en/bitcoin-for-organizations | ||
- text: Developers | ||
url: /en/bitcoin-for-developers | ||
- text: Enthusiasts | ||
url: /en/bitcoin-for-enthusiasts | ||
menu: | ||
- text: How it works | ||
url: /en/how-it-works | ||
- text: Vocabulary | ||
url: /en/vocabulary | ||
- text: Resources | ||
url: /en/resources | ||
- text: Community | ||
url: /en/community | ||
- text: Development | ||
url: /en/development | ||
- text: Foundation | ||
url: /en/foundation | ||
- text: About | ||
url: /en/about | ||
--- | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html lang="{{ page.langcode }}"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>{{ page.title }}</title> | ||
{% lesscss bootstrap.less %} | ||
<script type="text/javascript" src="/js/main.js"></script> | ||
<link rel="shortcut icon" href="/favicon.png"> | ||
{% for lang in site.langs %}{% if lang.langcode != page.langcode %} | ||
<link rel="alternate" hreflang="{{ lang.langcode }}" href="/{{ lang.langcode }}" /> | ||
{% endif %}{% endfor %} | ||
</head> | ||
<body> | ||
{% if site.ALERT or site.ALERT_en %} | ||
{% if site.ALERT_CLASS %}{% assign class = site.ALERT_CLASS%}{% endif %}{% if site.ALERT_CLASS_en %}{% assign class = site.ALERT_CLASS_en%}{% endif %} | ||
{% if site.ALERT %}{% assign alert = site.ALERT%}{% endif %}{% if site.ALERT_en %}{% assign alert = site.ALERT_en%}{% endif %} | ||
<div class="alert-message {{ class }}"> | ||
<div><div>{{ alert }}</div></div> | ||
</div> | ||
{% endif %} | ||
<div id="head"> | ||
<div class="wrap"> | ||
<ul id="lang"> | ||
<li><a href="javascript:void();">{{ page.langtext }}</a> | ||
<ul> | ||
{% for lang in site.langs %}{% if lang.langcode != page.langcode %} | ||
<li><a href="/{{ lang.langcode }}/">{{ lang.langtext }}</a></li> | ||
{% endif %}{% endfor %} | ||
</ul> | ||
</li> | ||
</ul> | ||
<div id="logo"><a href="/{{ page.langcode }}/"><span>Bitcoin</span></a></div> | ||
<ul id="menufor"> | ||
{% for link in page.menufor %}{% assign active = nil %}{% capture fullurl %}{{ link.url | append:'.html' }}{% endcapture %}{% if page.url == fullurl %}{% assign active = 'active' %}{% endif %} | ||
<li{% if active %} class="{{ active }}"{% endif %}><a href="{{ link.url }}">{{ link.text }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<ul id="menu" class="wrap"> | ||
{% for link in page.menu %}{% assign active = nil %}{% capture fullurl %}{{ link.url | append:'.html' }}{% endcapture %}{% if page.url == fullurl %}{% assign active = 'active' %}{% endif %} | ||
<li{% if active %} class="{{ active }}"{% endif %}><a href="{{ link.url }}">{{ link.text }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div id="body"> | ||
<div class="wrap"> | ||
<div id="content"> | ||
{{ content }} | ||
</div> | ||
<div id="rightbox"> | ||
<div id="choose"> | ||
<a href="/en/choose-your-wallet"><img src="/img/but_start.svg" alt="Choose your wallet">Choose your wallet</a> | ||
</div> | ||
<div id="before"> | ||
<a href="/en/you-need-to-know"><img src="/img/but_warn.svg" alt="You need to know">You need to know</a> | ||
</div> | ||
<div id="support"> | ||
<a href="/en/support-bitcoin"><img src="/img/but_involve.svg" alt="Support Bitcoin">Support Bitcoin</a> | ||
</div> | ||
</div> | ||
<div id="footer"><div>© <a href="https://bitcoinfoundation.org/" target="_blank">The Bitcoin Foundation</a> 2009–2013 Released under the <a href="http://creativecommons.org/licenses/MIT/" target="_blank">MIT license</a></div></div> | ||
</div> | ||
</div> | ||
<script type="text/javascript">svgfallback();</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
ALERT_CLASS: | ||
ALERT: | ||
langcode: fr | ||
langtext: Français | ||
menufor: | ||
- text: Particuliers | ||
url: /fr/bitcoin-pour-particuliers | ||
- text: Organisations | ||
url: /fr/bitcoin-pour-organisations | ||
- text: Développeurs | ||
url: /fr/bitcoin-pour-developpeurs | ||
- text: Passionnés | ||
url: /fr/bitcoin-pour-passionnes | ||
menu: | ||
- text: Comment ça marche | ||
url: /fr/comment-ca-marche | ||
- text: Vocabulaire | ||
url: /fr/vocabulaire | ||
- text: Ressources | ||
url: /fr/ressources | ||
- text: Communauté | ||
url: /fr/communaute | ||
- text: Développement | ||
url: /fr/developpement | ||
- text: Fondation | ||
url: /fr/fondation | ||
- text: À propos | ||
url: /fr/a-propos | ||
--- | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html lang="{{ page.langcode }}"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>{{ page.title }}</title> | ||
{% lesscss bootstrap.less %} | ||
<script type="text/javascript" src="/js/main.js"></script> | ||
<link rel="shortcut icon" href="/favicon.png"> | ||
{% for lang in site.langs %}{% if lang.langcode != page.langcode %} | ||
<link rel="alternate" hreflang="{{ lang.langcode }}" href="/{{ lang.langcode }}" /> | ||
{% endif %}{% endfor %} | ||
</head> | ||
<body> | ||
{% if site.ALERT or site.ALERT_fr %} | ||
{% if site.ALERT_CLASS %}{% assign class = site.ALERT_CLASS%}{% endif %}{% if site.ALERT_CLASS_fr %}{% assign class = site.ALERT_CLASS_fr%}{% endif %} | ||
{% if site.ALERT %}{% assign alert = site.ALERT%}{% endif %}{% if site.ALERT_fr %}{% assign alert = site.ALERT_fr%}{% endif %} | ||
<div class="alert-message {{ class }}"> | ||
<div><div>{{ alert }}</div></div> | ||
</div> | ||
{% endif %} | ||
<div id="head"> | ||
<div class="wrap"> | ||
<ul id="lang"> | ||
<li><a href="javascript:void();">{{ page.langtext }}</a> | ||
<ul> | ||
{% for lang in site.langs %}{% if lang.langcode != page.langcode %} | ||
<li><a href="/{{ lang.langcode }}/">{{ lang.langtext }}</a></li> | ||
{% endif %}{% endfor %} | ||
</ul> | ||
</li> | ||
</ul> | ||
<div id="logo"><a href="/{{ page.langcode }}/"><span>Bitcoin</span></a></div> | ||
<ul id="menufor"> | ||
{% for link in page.menufor %}{% assign active = nil %}{% capture fullurl %}{{ link.url | append:'.html' }}{% endcapture %}{% if page.url == fullurl %}{% assign active = 'active' %}{% endif %} | ||
<li{% if active %} class="{{ active }}"{% endif %}><a href="{{ link.url }}">{{ link.text }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<ul id="menu" class="wrap"> | ||
{% for link in page.menu %}{% assign active = nil %}{% capture fullurl %}{{ link.url | append:'.html' }}{% endcapture %}{% if page.url == fullurl %}{% assign active = 'active' %}{% endif %} | ||
<li{% if active %} class="{{ active }}"{% endif %}><a href="{{ link.url }}">{{ link.text }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div id="body"> | ||
<div class="wrap"> | ||
<div id="content"> | ||
{{ content }} | ||
</div> | ||
<div id="rightbox"> | ||
<div id="choose"> | ||
<a href="/fr/choisir-votre-porte-monnaie"><img src="/img/but_start.svg" alt="Choisissez votre porte-monnaie">Choisissez votre porte-monnaie</a> | ||
</div> | ||
<div id="before"> | ||
<a href="/fr/vous-devez-savoir"><img src="/img/but_warn.svg" alt="Vous devez savoir">Vous devez savoir</a> | ||
</div> | ||
<div id="support"> | ||
<a href="/fr/supporter-bitcoin"><img src="/img/but_involve.svg" alt="Support Bitcoin">Supporter Bitcoin !</a> | ||
</div> | ||
</div> | ||
<div id="footer"><div>© <a href="https://bitcoinfoundation.org/" target="_blank">The Bitcoin Foundation</a> 2009–2013 Released under the <a href="http://creativecommons.org/licenses/MIT/" target="_blank">MIT license</a></div></div> | ||
</div> | ||
</div> | ||
<script type="text/javascript">svgfallback();</script> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.