diff --git a/backend/views/articles/index.php b/backend/views/articles/index.php index c588d44..f97b4d3 100755 --- a/backend/views/articles/index.php +++ b/backend/views/articles/index.php @@ -10,9 +10,9 @@ use yii\grid\GridView; $this->title = 'Articles'; $this->params['breadcrumbs'][] = $this->title; ?> -
diff --git a/backend/views/articles/view.php b/backend/views/articles/view.php index cda06cd..23ccbc5 100755 --- a/backend/views/articles/view.php +++ b/backend/views/articles/view.php @@ -10,9 +10,9 @@ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Articles', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> -
= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> diff --git a/frontend/views/articles/show.php b/frontend/views/articles/show.php index b391f17..86d1464 100755 --- a/frontend/views/articles/show.php +++ b/frontend/views/articles/show.php @@ -4,7 +4,9 @@ use yii\helpers\Url; use yii\widgets\Breadcrumbs; ?> title = $news->meta_title; +$this->params['seo']['title'] = !empty($this->title) ?$this->title : ''; $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); ?> -- libgit2 0.21.4