From 4d89ea984f93929ccb238dde5460b6968cdaa9f9 Mon Sep 17 00:00:00 2001 From: XPoet Date: Sat, 8 Oct 2022 23:43:52 +0800 Subject: [PATCH] feat(post): displays the post update time (#145) --- layout/_partial/article-meta-info.ejs | 25 ++++++++++++++----- layout/_partial/home-article-meta-info.ejs | 10 +++++++- .../layout/_partial/article-meta-info.styl | 6 +++++ 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/layout/_partial/article-meta-info.ejs b/layout/_partial/article-meta-info.ejs index 729168f..c2fe2e5 100644 --- a/layout/_partial/article-meta-info.ejs +++ b/layout/_partial/article-meta-info.ejs @@ -1,9 +1,22 @@ +<% +const ami_is_updated = articleObject.date !== articleObject.updated +%>
+ <% if (ami_is_updated) { %> + + <% } %> <% if (articleObject.categories.length) { %>