Should Schema.org dateModified have some default value if not available?

前端 未结 2 939
伪装坚强ぢ
伪装坚强ぢ 2021-01-24 14:15

For Schema.org Article I get an error in https://developers.google.com/structured-data/testing-tool/ for dateModified:

The dateModified fiel

相关标签:
2条回答
  • 2021-01-24 14:36
    <span itemprop='dateModified'>09/05/2017t02:25</span> or
    <meta content='09/05/2017t02:25' itemprop='dateModified'/>
    <div itemprop='dateModified'>29.05.2017T02:30</div>
    
    0 讨论(0)
  • 2021-01-24 14:39

    The SDTT is not a general Schema.org validator. It primarily checks the Schema.org-based structured data for Google’s own search result features. If Google’s tool reports an error, it doesn’t necessarily mean that your markup is wrong, it often only means that you won’t get a certain Google search result feature.

    The vocabulary Schema.org doesn’t require any property. It’s perfectly fine not to provide the dateModified property, and it’s the right thing to do if your publication wasn’t modified yet.

    (FWIW, the documentation for Google’s Top Stories with AMP feature says, for publications that were not modified, to omit the property or to set it to the same value as datePublished.)

    0 讨论(0)
提交回复
热议问题