diff --git a/_build/update_site.sh b/_build/update_site.sh index f97dd718..358729ed 100755 --- a/_build/update_site.sh +++ b/_build/update_site.sh @@ -11,8 +11,10 @@ BUNDLE_DIR='/bitcoin.org/bundle' SITEDIR='/bitcoin.org/site' DESTDIR='build@bitcoinorgsite:/var/www/site' WORKDIR=`mktemp -d` +BITCOINORG_BUILD_TYPE='deployment' export BUNDLE_DIR +export BITCOINORG_BUILD_TYPE # Stop script in case a single command fails set -e diff --git a/_templates/about-us.html b/_templates/about-us.html index 82dd1b5a..d580fe39 100644 --- a/_templates/about-us.html +++ b/_templates/about-us.html @@ -5,6 +5,7 @@ layout: base id: about-us --- +{% if site.env.BITCOINORG_BUILD_TYPE %}

{% translate pagetitle %}

{% translate pagedesc %}

@@ -83,3 +84,19 @@ id: about-us {% endfor %} +{% else %} +{% comment %} + +{% endcomment %} +

About this site

+ +This site includes content originally published on Bitcoin.org, but it is not affiliated with +Bitcoin.org. +{% endif %} diff --git a/_templates/download.html b/_templates/download.html index 7a9bfa5b..2612de86 100755 --- a/_templates/download.html +++ b/_templates/download.html @@ -16,6 +16,7 @@ lin32: "linux32.tar.gz" lin64: "linux64.tar.gz" --- +{% if site.env.BITCOINORG_BUILD_TYPE %} {% capture PATH_PREFIX %}/bin/bitcoin-core-{{ site.DOWNLOAD_VERSION }}{% endcapture %} @@ -148,3 +149,13 @@ case 'mac': break; } +{% else %} +{% capture redirect %}https://bitcoin.org/{{page.lang}}/{% translate download url %}{% endcapture %} + + + +
+

This page has been moved

+

{{ redirect }}

+
+{% endif %}