1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-06-17 10:03:16 +02:00

Revert "prevent search engine indexing of beta & gamma"

This reverts commit 8103c6884e.
This commit is contained in:
Matthias Kretschmann 2017-03-20 15:52:10 +01:00
parent 8103c6884e
commit 7eda6abf14
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
3 changed files with 2 additions and 27 deletions

View File

@ -8,33 +8,8 @@ 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 != 'livedeploy' or page.sitemap == false %}
{% if jekyll.environment != 'production' or page.sitemap == false %}
<meta name="robots" content="noindex, nofollow">
{% endif %}

View File

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