diff options
author | Doge <[email protected]> | 2021-05-15 17:43:32 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-15 17:43:32 +0800 |
commit | 7402b8e61ca30e1b062a7cb6d769dabb11ecf0cb (patch) | |
tree | 954f868cafa1a55a4312348e0c2d7fa7a24015c2 | |
parent | 4ad7f73c7f04609a57fb322f652fbf4d6edd0241 (diff) | |
download | chromate-7402b8e61ca30e1b062a7cb6d769dabb11ecf0cb.tar.gz chromate-7402b8e61ca30e1b062a7cb6d769dabb11ecf0cb.tar.bz2 chromate-7402b8e61ca30e1b062a7cb6d769dabb11ecf0cb.zip |
Add post page date tag
-rw-r--r-- | layout/post.ejs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layout/post.ejs b/layout/post.ejs index a9b1f8a..9d9c8df 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -73,9 +73,12 @@ <div class="level-item"> <% if (page.tags) { %> <div class="tags"> + <span class="tag"> + <%- date(page.date, theme.timeformat) %> + </span> <% (page.tags).forEach(function(item) { %> <span class="tag"># <%= item.name %></span> - <% }); %> + <% }); %> </div> <% } %> </div> |