1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 02:16:10 +01:00

prevent search engine indexing of all non-production builds, ref #3

This commit is contained in:
Matthias Kretschmann 2016-01-08 13:01:21 +01:00
parent 470ddae641
commit 72a3d65ac0
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -115,6 +115,7 @@ gulp.task('jekyll', function(cb) {
process.env.JEKYLL_ENV = 'production';
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build'], { stdio: 'inherit' });
} else {
process.env.JEKYLL_ENV = 'development';
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--incremental', '--drafts', '--future'], { stdio: 'inherit' });
}