new bitcoin.org

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
This commit is contained in:
Saivann 2013-03-18 14:29:59 -04:00
parent 6d00273b38
commit 2718222c9b
191 changed files with 9435 additions and 2716 deletions

23
_contrib/translate Executable file
View file

@ -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

0
_contrib/update_website.sh Normal file → Executable file
View file

26
_contrib/updatesitemap Executable file
View file

@ -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