mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-24 02:16:10 +01:00
prevent search engine indexing of beta & gamma
This commit is contained in:
parent
e83b1f4067
commit
8103c6884e
25
_ci/build.sh
25
_ci/build.sh
@ -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"
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user