Added a hidedate option to article.ejs

Signed-off-by: Xiaofeng QU <xiaofeng.qu.hk@ieee.org>
pull/29/head
Xiaofeng QU 2015-07-11 09:13:07 +08:00
parent 9396bc1994
commit 40cc0c92d2
1 changed files with 4 additions and 2 deletions

View File

@ -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>