Schema.orgに変更しないといけなかったが、やり方がよく分からなかったので、調べながらやった結果のメモ。
変更前 変更前
(比較しやすいように、改行やインデントを適宜追加)
<ul class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li>
<a href="<$mt:WebsiteURL$>">
Home
</a>
</li>
<mt:ParentCategories>
<mt:IfNonZero tag="MTCategoryCount">
<li>
<a href="<$mt:CategoryArchiveLink$>">
<$mt:CategoryLabel$>
</a>
</li>
<mt:Else><li><$mt:CategoryLabel$></li></mt:Else>
</mt:IfNonZero>
</mt:ParentCategories>
<li><$mt:EntryTitle$></li>
</ul>
</ul>
変更後
<ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="<$mt:WebsiteURL$>" itemprop="item">
<span itemprop="name">Home</span>
</a>
<meta itemprop="position" content="1" />
</li>
<mt:ParentCategories>
<mt:SetVar name="count" op="+" value="1">
<mt:IfNonZero tag="MTCategoryCount">
<li class="breadcrumb" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="<$mt:CategoryArchiveLink$>" itemprop="item">
<span itemprop="name"><$mt:CategoryLabel$></span>
</a>
<meta itemprop="position" content="<MT:Var name="count" op="+" value="1">" />
</li>
<mt:Else><li><$mt:CategoryLabel$></li></mt:Else>
</mt:IfNonZero>
</mt:ParentCategories>
<li><$mt:EntryTitle$></li>
</ul>
0 件のコメント:
コメントを投稿