Commit 41aadcedbea5200712a612c907d5fe5401d18ad2
1 parent
d73731d7
blog seo and remove author from blog/view
Showing
1 changed file
with
10 additions
and
6 deletions
Show diff stats
frontend/views/blog/view.php
| ... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 | * Time: 9:22 |
| 6 | 6 | * |
| 7 | 7 | * @var Article $article |
| 8 | + * @var SeoComponent $seo | |
| 8 | 9 | */ |
| 9 | 10 | |
| 10 | 11 | use artbox\weblog\models\Article; |
| ... | ... | @@ -12,10 +13,18 @@ |
| 12 | 13 | use frontend\widgets\CategoryWidget; |
| 13 | 14 | use frontend\widgets\TagWidget; |
| 14 | 15 | use common\models\Settings; |
| 16 | + use artbox\core\components\SeoComponent; | |
| 17 | + use yii\helpers\Url; | |
| 18 | + | |
| 15 | 19 | |
| 16 | 20 | $settings = Settings::getInstance(); |
| 21 | + $seo = Yii::$app->get('seo'); | |
| 17 | 22 | |
| 18 | - $this->params[ 'breadcrumbs' ][] = $this->title; | |
| 23 | + $this->params[ 'breadcrumbs' ][] = [ | |
| 24 | + 'label' => Yii::t('app', "menu-blog"), | |
| 25 | + 'url' => Url::toRoute(['blog/index']) | |
| 26 | + ]; | |
| 27 | + $this->params[ 'breadcrumbs' ][] = $seo->h1 | |
| 19 | 28 | |
| 20 | 29 | ?> |
| 21 | 30 | |
| ... | ... | @@ -29,11 +38,6 @@ |
| 29 | 38 | |
| 30 | 39 | <div class="col-md-9" id="blog-post"> |
| 31 | 40 | |
| 32 | - | |
| 33 | - <p class="text-muted text-uppercase mb-small text-right"> | |
| 34 | - By <a href="#">copywriter</a> in TravelBlog | |
| 35 | - </p> | |
| 36 | - | |
| 37 | 41 | <p class="lead"> |
| 38 | 42 | <?=$article->lang->title?> |
| 39 | 43 | </p> | ... | ... |