#1047 - Убрать приписку к тегу Title

parent b9929cbd
......@@ -35,7 +35,7 @@ class PostController extends BaseController
*/
public function actionIndex()
{
$this->meta_title = Yii::t('menu', 'Blog') . ' - ' . \Yii::$app->params['name'];
$this->meta_title = Yii::t('menu', 'Blog');
$query = Post::find()->where(['active' => 1])->limit(Post::PAGE_SIZE)->orderBy('created_at DESC');
......@@ -59,7 +59,7 @@ class PostController extends BaseController
throw new NotFoundHttpException('The requested page does not exist.');
}
$this->meta_title = Yii::t('app', 'Tag') . ': ' . $model->name . ' - ' . \Yii::$app->params['name'];
$this->meta_title = Yii::t('app', 'Tag') . ': ' . $model->name;
return $this->render('tag', [
'model' => $model,
......@@ -76,7 +76,7 @@ class PostController extends BaseController
{
$model = $this->findModelByUrl($url);
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name'];
$this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords;
......
......@@ -37,7 +37,7 @@ class PageController extends \common\components\BaseController
}
$content = $model->lang->getFinishedContent();
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name'];
$this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords;
......
......@@ -98,7 +98,7 @@ class SiteController extends Controller
$model = \common\modules\content\models\CoContent::findOne(['url' => 'site/error']);
$content = $model->lang->getFinishedContent();
$this->meta_title = $model->metaTag->title . ' - ' . \Yii::$app->params['name'];
$this->meta_title = $model->metaTag->title;
$this->meta_description = $model->metaTag->description;
$this->meta_keywords = $model->metaTag->keywords;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment