fix(schema): use "articleBody" for post content

* Revert 5d216d3
* https://schema.org/BlogPosting
* "text" is more suitable for itemtype="https://schema.org/Blog"
* https://schema.org/Blog is more suitable for homepage (list of posts)
* ref https://github.com/philwareham/schema-microdata-examples/blob/master/blog.html
This commit is contained in:
curben 2019-06-27 23:38:20 +09:30
parent 5f83dddf71
commit 2a242f59a6
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost"> <article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<%- partial('_partial/header') %> <%- partial('_partial/header') %>
<hr/> <hr/>
<div class="hentry article-inner"> <div class="hentry article-inner">
@ -11,7 +11,7 @@
<% if (post.subtitle) { %> <% if (post.subtitle) { %>
<p class="entry-summary"><%- post.subtitle %></p> <p class="entry-summary"><%- post.subtitle %></p>
<% } %> <% } %>
<div class="entry-content article-entry typo" itemprop="text"> <div class="entry-content article-entry typo" itemprop="articleBody">
<%- toc(page.content, {list_number: false}) %> <%- toc(page.content, {list_number: false}) %>
<%- post.content %> <%- post.content %>
</div> </div>