1
0
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:
Cameron
2019-09-03 05:10:11 -07:00
parent 2a1b4d75df
commit 9be7ef275a

View File

@@ -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;