瀏覽代碼

Added the hidedate condition in date.ejs

Signed-off-by: Xiaofeng QU <xiaofeng.qu.hk@ieee.org>
Xiaofeng QU 10 年之前
父節點
當前提交
5c408aaf7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layout/_partial/post/date.ejs

+ 1 - 1
layout/_partial/post/date.ejs

@@ -1,4 +1,4 @@
-<% if (post.date){ %>
+<% if (post.date && !post.hidedate){ %>
   <div class="<%= class_name %>">
     <i class="fa fa-calendar"></i>
     <a href="<%- url_for(post.path) %>">