summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoge <[email protected]>2021-05-08 01:44:29 +0800
committerDoge <[email protected]>2021-05-08 01:44:29 +0800
commit0e5a3375fb10a8332d3f66bf3631b6e0861fb662 (patch)
tree057c8583e9401ff4e06441cf13af961646f0881c
parent04ecc3472802ec02f943a63683d3e311bfc19613 (diff)
downloadchromate-0e5a3375fb10a8332d3f66bf3631b6e0861fb662.tar.gz
chromate-0e5a3375fb10a8332d3f66bf3631b6e0861fb662.tar.bz2
chromate-0e5a3375fb10a8332d3f66bf3631b6e0861fb662.zip
Add time format custom option
-rw-r--r--_config.yml5
-rw-r--r--layout/index.ejs2
-rw-r--r--layout/post.ejs2
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 @@
<div class="post-duration"><%- viewstr %></div>
<% } %>
<div class="post-time">
- <%- date(post.date, "MMM, D YYYY") %>
+ <%- date(post.date, theme.timeformat) %>
</div>
<% if (post.tags) { %>
<div class="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 @@
<!-- Post title and content -->
<div class="post-meta">
<div class="post-time">
- <%- date(page.date, "MMM, D YYYY") %>
+ <%- date(page.date, theme.timeformat) %>
</div>
</div>
<h1 class="post-title"><%= page.title %></h1>