1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-02-14 21:10:28 +01:00

Revert "prevent search engine indexing of beta & gamma"

This reverts commit 8103c6884e9d0855337f4dd7cb19b15208b59dfe.
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 "============================================="
echo "$(tput sgr0)" # reset 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 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 "$(tput setaf 64)" # green
echo "---------------------------------------------" echo "---------------------------------------------"
echo " ✓ done building" echo " ✓ done building"

View File

@ -58,7 +58,7 @@
{% include twittercards.html %} {% include twittercards.html %}
<!-- Prevent search indexing for some pages or non-production builds --> <!-- 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"> <meta name="robots" content="noindex, nofollow">
{% endif %} {% endif %}

View File

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