mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
SEO robots meta tags added.
This commit is contained in:
@@ -540,9 +540,13 @@ class news_front
|
||||
$this->addDebug('setNewsFrontMeta (type)',$type);
|
||||
// $this->addDebug('setNewsFrontMeta (data)',$news);
|
||||
|
||||
|
||||
switch($type)
|
||||
{
|
||||
|
||||
case "all":
|
||||
e107::meta('robots', 'noindex');
|
||||
break;
|
||||
|
||||
case "tag":
|
||||
case "author":
|
||||
if(!defined('e_PAGETITLE'))
|
||||
@@ -550,6 +554,8 @@ class news_front
|
||||
define('e_PAGETITLE', $this->subAction);
|
||||
e107::meta('og:title', $this->subAction);
|
||||
}
|
||||
e107::meta('robots', 'noindex');
|
||||
|
||||
break;
|
||||
|
||||
case "list":
|
||||
@@ -559,6 +565,7 @@ class news_front
|
||||
define('e_PAGETITLE', $title );
|
||||
e107::meta('og:title', $title);
|
||||
}
|
||||
e107::meta('robots', 'noindex');
|
||||
break;
|
||||
|
||||
case "day":
|
||||
@@ -585,6 +592,7 @@ class news_front
|
||||
define('e_PAGETITLE', $title );
|
||||
e107::meta('og:title', $title);
|
||||
}
|
||||
e107::meta('robots', 'noindex');
|
||||
break;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user