mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Precaution. Add 'follow' to robots.
This commit is contained in:
@@ -561,21 +561,21 @@ class news_front
|
||||
{
|
||||
|
||||
case "all":
|
||||
e107::meta('robots', 'noindex');
|
||||
e107::meta('robots', 'noindex, follow');
|
||||
e107::route('news/list/items');
|
||||
e107::canonical($this->route, $news);
|
||||
break;
|
||||
|
||||
case "tag":
|
||||
e107::title($this->subAction);
|
||||
e107::meta('robots', 'noindex');
|
||||
e107::meta('robots', 'noindex, follow');
|
||||
e107::route('news/list/tag');
|
||||
e107::canonical('news/list/tag', array('tag'=> str_replace(' ','-',$this->subAction)));
|
||||
break;
|
||||
case "author":
|
||||
|
||||
e107::title($this->subAction);
|
||||
e107::meta('robots', 'noindex');
|
||||
e107::meta('robots', 'noindex, follow');
|
||||
e107::route('news/list/author');
|
||||
e107::canonical('news/list/author', $news);
|
||||
break;
|
||||
@@ -583,7 +583,7 @@ class news_front
|
||||
case "list":
|
||||
$title = $tp->toHTML($news['category_name'],false,'TITLE_PLAIN');
|
||||
e107::title($title);
|
||||
e107::meta('robots', 'noindex');
|
||||
e107::meta('robots', 'noindex, follow');
|
||||
e107::route('news/list/category');
|
||||
// $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] );
|
||||
|
||||
@@ -610,7 +610,7 @@ class news_front
|
||||
$this->dayMonth = $title;
|
||||
|
||||
e107::title($title);
|
||||
e107::meta('robots', 'noindex');
|
||||
e107::meta('robots', 'noindex, follow');
|
||||
|
||||
if($type == 'day')
|
||||
{
|
||||
|
Reference in New Issue
Block a user