fix(microformats): add 'published' class only to posts

This commit is contained in:
curben 2019-06-26 20:24:29 +09:30
parent b8f987934b
commit 132e96f69a
1 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,6 @@
<%/* Date format is specified to skip timezone conversion */%> <%/* Date format is specified to skip timezone conversion */%>
<time class="published" datetime="<%= date(post.date, 'YYYY-MM-DD[T00:00:00.000Z]') %>" itemprop="datePublished"><%= date(post.date, 'D MMM YYYY') %></time> <% if (is_post()) { %>
<time class="published" datetime="<%= date(post.date, 'YYYY-MM-DD[T00:00:00.000Z]') %>" itemprop="datePublished"><%= date(post.date, 'D MMM YYYY') %></time>
<% } else { %>
<time datetime="<%= date(post.date, 'YYYY-MM-DD[T00:00:00.000Z]') %>" itemprop="datePublished"><%= date(post.date, 'D MMM YYYY') %></time>
<% } %>