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