1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

prevent search engine indexing of beta & gamma

This commit is contained in:
Matthias Kretschmann 2017-03-20 15:46:55 +01:00
parent e83b1f4067
commit 8103c6884e
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
3 changed files with 27 additions and 2 deletions

View File

@ -8,8 +8,33 @@ echo " Starting build "
echo "============================================="
echo "$(tput sgr0)" # reset
##
## check for pull request against master
##
if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
export JEKYLL_ENV=betadeploy
gulp build --production
##
## check for master push which is no pull request
##
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
export JEKYLL_ENV=livedeploy
gulp build --production
else
gulp build --production
fi;
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done building"

View File

@ -58,7 +58,7 @@
{% include twittercards.html %}
<!-- Prevent search indexing for some pages or non-production builds -->
{% if jekyll.environment != 'production' or page.sitemap == false %}
{% if jekyll.environment != 'livedeploy' or page.sitemap == false %}
<meta name="robots" content="noindex, nofollow">
{% endif %}

View File

@ -65,7 +65,7 @@ if (!_dntEnabled()) {
}
</script>
{% if jekyll.environment == "production" %}
{% if jekyll.environment == "livedeploy" %}
<script async src="//www.google-analytics.com/analytics.js"></script>
{% else %}
<script async src="//www.google-analytics.com/analytics_debug.js"></script>