mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-25 11:08:29 +01:00
prevent search engine indexing of all non-production builds, ref #3
This commit is contained in:
parent
470ddae641
commit
72a3d65ac0
@ -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>
|
||||
|
@ -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' });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user