From 4c73b27d1ec285f221792ebf45117f1de541a538 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 15 Jul 2018 20:34:52 +0100 Subject: [PATCH] tell google to stop indexing /post/list/-cake%20-pie/34342 --- ext/index/theme.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/index/theme.php b/ext/index/theme.php index ecc0b496..6bc915cb 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -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(''); + } $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);