Schema.org URL-адрес объекта изображения
Schema.org ’с ImageObject
пример использования itemprop="contentUrl"
.
Я протестировал этот упрощенный код в Google: https://search.google.com/structured-data/testing-tool выдает мне ошибку:
Требуется значение для поля URL
<div itemscope itemtype="http://schema.org/Article">
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="contentUrl" src="1.png" alt="alt of the image">
<p itemprop="caption">Caption of the image</p>
</div>
<h1 itemprop="name">Title of the post</h1>
<div itemprop="articleBody" class="text">
<p>This is the body of the post</p>
</div>
</div>
Как устранить эту ошибку в Google?
1
1 answers
Вы можете предоставить свойство url
в дополнение к свойству contentUrl
:
<img itemprop="contentUrl url" src="1.png" alt="alt of the image">
(В идеале Google будет использовать/требовать contentUrl
вместо url
для изображения для их богатого результата статьи.)
0
Author: unor, 2016-08-27 15:52:50