diff --git a/_config.yml b/_config.yml index 8505219..1004c9d 100755 --- a/_config.yml +++ b/_config.yml @@ -167,10 +167,12 @@ meta: # 文章创建日期 date: icon: fas fa-calendar-alt - format: 'YYYY-MM-DD' # 日期格式 http://momentjs.com/docs/ + title: '发布于:' + format: 'll' # 日期格式 http://momentjs.com/docs/ # 文章更新日期 updated: icon: fas fa-clock + title: '更新于:' format: 'll' # 日期格式 http://momentjs.com/docs/ # 文章分类 category: diff --git a/layout/_meta/date.ejs b/layout/_meta/date.ejs index a31a9d9..398e2e8 100755 --- a/layout/_meta/date.ejs +++ b/layout/_meta/date.ejs @@ -1,6 +1,6 @@
-

<%- date(post.date, theme.meta.date.format) %>

+

<%- theme.meta.date.title + date(post.date, theme.meta.date.format) %>

diff --git a/layout/_meta/updated.ejs b/layout/_meta/updated.ejs index 3a67a97..6bc745b 100644 --- a/layout/_meta/updated.ejs +++ b/layout/_meta/updated.ejs @@ -1,6 +1,6 @@
-

<%- __('post.updated') + ' ' + date(post.updated, theme.meta.updated.format) %>

+

<%- theme.meta.updated.title + date(post.updated, theme.meta.updated.format) %>