mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(share): integrate last updated date
This commit is contained in:
parent
dc5bb627ed
commit
8cb7dc7a7e
@ -189,6 +189,16 @@ content = content.replaceAll(headingRe, (...match) => {
|
||||
<% } %>
|
||||
|
||||
<footer id="content-footer">
|
||||
<% if (!isEmpty) { %>
|
||||
<div class="updated">
|
||||
<%
|
||||
const lastUpdated = new Date(note.utcDateModified);
|
||||
const dateString = lastUpdated.toDateString();
|
||||
%>
|
||||
Last updated on <time datetime="<%- lastUpdated.toISOString() %>"><%- dateString.substring(4) %></time>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<%- include("prev_next", { note: note, subRoot: subRoot }) %>
|
||||
</footer>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user