feat: show published/updated date on pages

This commit is contained in:
Ming Di Leom 2025-07-27 07:52:33 +00:00
parent 4922492c95
commit 7900d8410b
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
3 changed files with 3 additions and 10 deletions

View File

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

View File

@ -509,10 +509,6 @@ span.index-list-count:after {
width: 100%; width: 100%;
} }
.article-type-page .article-footer {
display: none;
}
table caption, table caption,
table td, table td,
td { td {

View File

@ -825,10 +825,6 @@ span.index-list-count:after {
width: 100%; width: 100%;
} }
.article-type-page .article-footer {
display: none;
}
table caption, table caption,
table td, table td,
td { td {