feat(layout): add yearly and monthly archive links

This commit is contained in:
curben 2019-07-07 11:13:34 +09:30
parent dad0ed6b34
commit c6a002b409
1 changed files with 5 additions and 5 deletions

View File

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