Ver Fonte

Added the hidedate condition in date.ejs

Signed-off-by: Xiaofeng QU <xiaofeng.qu.hk@ieee.org>
Xiaofeng QU há 10 anos atrás
pai
commit
5c408aaf7f
1 ficheiros alterados com 1 adições e 1 exclusões
  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 %>">
   <div class="<%= class_name %>">
     <i class="fa fa-calendar"></i>
     <i class="fa fa-calendar"></i>
     <a href="<%- url_for(post.path) %>">
     <a href="<%- url_for(post.path) %>">