Преглед на файлове

Added a hidedate option to article.ejs

Signed-off-by: Xiaofeng QU <xiaofeng.qu.hk@ieee.org>
Xiaofeng QU преди 10 години
родител
ревизия
40cc0c92d2
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      layout/_partial/article.ejs

+ 4 - 2
layout/_partial/article.ejs

@@ -7,8 +7,10 @@
     <% if (post.link || post.title){ %>
       <header class="article-header">
         <%- partial('post/title', {class_name: 'article-title'}) %>
-        <div class="article-meta">
-          <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
+	      <div class="article-meta">
+          <% if (!post.hidedate){ %>
+            <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
+          <% } %>
           <%- partial('post/category') %>
         </div>
       </header>