tell google to stop indexing /post/list/-cake%20-pie/34342

This commit is contained in:
Shish 2018-07-15 20:34:52 +01:00
parent b973705021
commit 4c73b27d1e

View File

@ -135,6 +135,10 @@ and of course start organising your images :-)
*/
protected function display_page_images(Page $page, $images) {
if (count($this->search_terms) > 0) {
if($this->page_number > 3) {
// only index the first pages of each term
$page->add_html_header('<meta name="robots" content="noindex">');
}
$query = url_escape(implode(' ', $this->search_terms));
$page->add_block(new Block("Images", $this->build_table($images, "#search=$query"), "main", 10, "image-list"));
$this->display_paginator($page, "post/list/$query", null, $this->page_number, $this->total_pages, TRUE);