Commit 26acaf1b3bad12dff4737d6e444b434a87b209aa
1 parent
3e1f0931
vbкроразметка статьи тест2
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
frontend/views/blog/_article.php
@@ -11,10 +11,10 @@ $imageWidth = 360; | @@ -11,10 +11,10 @@ $imageWidth = 360; | ||
11 | $imageHeight = 240; | 11 | $imageHeight = 240; |
12 | ?> | 12 | ?> |
13 | 13 | ||
14 | -<div class="blog-list-wr" itemtype="http://schema.org/Article" itemscope> | 14 | +<div class="blog-list-wr"> |
15 | <meta itemprop="datePublished" content="<?= date('d-m-Y', $model->created_at) ?>"/> <!-- ДАТА --> | 15 | <meta itemprop="datePublished" content="<?= date('d-m-Y', $model->created_at) ?>"/> <!-- ДАТА --> |
16 | <div itemprop="dateModified" content="<?= date('d-m-Y', $model->updated_at) ?>"></div> | 16 | <div itemprop="dateModified" content="<?= date('d-m-Y', $model->updated_at) ?>"></div> |
17 | - <meta itemprop="mainEntityOfPage" href="<?= Url::to(['blog/index'], true); ?>"></meta> | 17 | + |
18 | <meta itemprop="headline" content="<?= $model->language->title ?>"/> <!-- ХХХ название статьи в H1 --> | 18 | <meta itemprop="headline" content="<?= $model->language->title ?>"/> <!-- ХХХ название статьи в H1 --> |
19 | <div class="img-blog-list" itemprop="publisher" itemscope itemtype="https://schema.org/Organization"> | 19 | <div class="img-blog-list" itemprop="publisher" itemscope itemtype="https://schema.org/Organization"> |
20 | <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"> | 20 | <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"> |
@@ -53,9 +53,12 @@ $imageHeight = 240; | @@ -53,9 +53,12 @@ $imageHeight = 240; | ||
53 | <meta itemprop="name" content="<?= Url::home(true); ?>"/> | 53 | <meta itemprop="name" content="<?= Url::home(true); ?>"/> |
54 | </div> | 54 | </div> |
55 | <?php if (!empty($model->tags)) { ?> | 55 | <?php if (!empty($model->tags)) { ?> |
56 | - <div class="blog-list-tags"> | 56 | + <div class="blog-list-tags" itemtype="http://schema.org/Article" itemscope> |
57 | <?php foreach ($model->tags as $tag) { ?> | 57 | <?php foreach ($model->tags as $tag) { ?> |
58 | - <a href="<?= Url::to(['alias' => $tag->language->alias]) ?>"><?= $tag->title ?></a> | 58 | + <a itemprop="mainEntityOfPage" href="<?= Url::to(['alias' => $tag->language->alias]) ?>" |
59 | + itemprop="name"><?= $tag->title ?></a> | ||
60 | + | ||
61 | + | ||
59 | <?php } ?> | 62 | <?php } ?> |
60 | </div> | 63 | </div> |
61 | <?php } ?> | 64 | <?php } ?> |