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) { %>
+
+ <% } else { %>
+
+ <% } %>
<%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD') %>
<%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD') %>
+ <% if (ami_is_updated) { %>
+
+
+ <%= date(articleObject.updated, 'YYYY-MM-DD HH:mm:ss') %>
+
+ <% } %>
<% if (articleObject.categories.length) { %>
@@ -30,13 +43,13 @@
<% } %>
<%
- let temp_wordcount_count, temp_min2read_count = null;
+ let temp_wordcount_count, temp_min2read_count = null
try {
- temp_wordcount_count = wordcount(page.content);
- temp_min2read_count = min2read(page.content);
+ temp_wordcount_count = wordcount(page.content)
+ temp_min2read_count = min2read(page.content)
} catch (e) {
- temp_wordcount_count = 0;
- temp_min2read_count = 0;
+ temp_wordcount_count = 0
+ temp_min2read_count = 0
}
%>
<% if(is_post() && theme.hasOwnProperty('post') && theme.post.word_count.enable && theme.post.word_count.wordcount && temp_wordcount_count){ %>
diff --git a/layout/_partial/home-article-meta-info.ejs b/layout/_partial/home-article-meta-info.ejs
index 04b0c21..d1eb770 100644
--- a/layout/_partial/home-article-meta-info.ejs
+++ b/layout/_partial/home-article-meta-info.ejs
@@ -1,6 +1,14 @@
+<%
+const target_date = post.date !== post.updated ? post.updated : post.date
+%>
-
<%= date(post.date, 'YYYY-MM-DD') %>
+
+
+
+ <%= date(target_date, 'YYYY-MM-DD') %>
+
+
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
diff --git a/source/css/layout/_partial/article-meta-info.styl b/source/css/layout/_partial/article-meta-info.styl
index 617fa8f..629f067 100644
--- a/source/css/layout/_partial/article-meta-info.styl
+++ b/source/css/layout/_partial/article-meta-info.styl
@@ -28,6 +28,12 @@
}
+ .article-update-date {
+ +keep-tablet() {
+ display none
+ }
+ }
+
.article-tags
.article-categories {
display inline