From 0e5a3375fb10a8332d3f66bf3631b6e0861fb662 Mon Sep 17 00:00:00 2001 From: Doge Date: Sat, 8 May 2021 01:44:29 +0800 Subject: Add time format custom option --- _config.yml | 5 +++-- layout/index.ejs | 2 +- layout/post.ejs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 14e03eb..4294862 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,5 @@ +logo: false +timeformat: "MMM, D YYYY" podcast: true lazyload: true highlight: @@ -10,5 +12,4 @@ navbar: - ['/feed', 'fa fa-rss'] menubar: - ['/about', 'About'] - - ['/archives', 'Archives'] -logo: false \ No newline at end of file + - ['/archives', 'Archives'] \ No newline at end of file diff --git a/layout/index.ejs b/layout/index.ejs index 42f1a4f..64db0da 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -35,7 +35,7 @@
<%- viewstr %>
<% } %>
- <%- date(post.date, "MMM, D YYYY") %> + <%- date(post.date, theme.timeformat) %>
<% if (post.tags) { %>
diff --git a/layout/post.ejs b/layout/post.ejs index d83d694..e0eed90 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -26,7 +26,7 @@

<%= page.title %>

-- cgit v1.2.3