mirror of https://gitlab.com/curben/blog
fix(microformats): add 'published' class only to posts
This commit is contained in:
parent
b8f987934b
commit
132e96f69a
|
@ -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>
|
||||||
|
<% } %>
|
||||||
|
|
Loading…
Reference in New Issue