Attempt to prevent bots indexing promos
- Mark the ads rel=nofollow - Add them to robots.txt - This was pretty much only a problem for Chinese spidershumitos/django/compatibility
parent
27d9ba3e9a
commit
94339b8f5a
|
@ -1,2 +1,3 @@
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /builds/
|
Disallow: /builds/
|
||||||
|
Disallow: /sustainability/click/
|
||||||
|
|
|
@ -81,6 +81,7 @@ Promo.prototype.place_promo = function (selector, promo_class) {
|
||||||
.attr('class', 'rtd-pro-image-wrapper')
|
.attr('class', 'rtd-pro-image-wrapper')
|
||||||
.attr('href', self.link)
|
.attr('href', self.link)
|
||||||
.attr('target', '_blank')
|
.attr('target', '_blank')
|
||||||
|
.attr('rel', 'nofollow')
|
||||||
.on('click', self.click_handler);
|
.on('click', self.click_handler);
|
||||||
var promo_image = $('<img />')
|
var promo_image = $('<img />')
|
||||||
.attr('class', 'rtd-pro-image')
|
.attr('class', 'rtd-pro-image')
|
||||||
|
@ -97,6 +98,7 @@ Promo.prototype.place_promo = function (selector, promo_class) {
|
||||||
.attr('class', 'rtd-pro-link')
|
.attr('class', 'rtd-pro-link')
|
||||||
.attr('href', self.link)
|
.attr('href', self.link)
|
||||||
.attr('target', '_blank')
|
.attr('target', '_blank')
|
||||||
|
.attr('rel', 'nofollow')
|
||||||
.on('click', self.click_handler);
|
.on('click', self.click_handler);
|
||||||
});
|
});
|
||||||
promo.append(promo_text);
|
promo.append(promo_text);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue