diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index 0f6d26f..c39de22 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -46,7 +46,7 @@ class SiteMapController extends Controller public function getCategories() { - return Category::find()->andWhere(['meta_robots' => ''])->all(); + return Category::find()->andWhere(['not like', 'meta_robots', 'noindex'])->all(); } @@ -70,7 +70,7 @@ class SiteMapController extends Controller public function getSeoLinks() { - return Seo::find()->where(['meta' => ''])->all(); + return Seo::find()->where(['not like', 'meta_robots', 'noindex'])->all(); } -- libgit2 0.21.4