Merge pull request #29 from quxiaofeng/master
Added a `hidedate` option to article.ejs
This commit is contained in:
commit
eaadad789b
|
@ -1,6 +1,8 @@
|
|||
<div class="<%= class_name %>">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<a href="<%- url_for(post.path) %>">
|
||||
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
|
||||
</a>
|
||||
</div>
|
||||
<% if (post.date && !post.hidedate){ %>
|
||||
<div class="<%= class_name %>">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<a href="<%- url_for(post.path) %>">
|
||||
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
|
||||
</a>
|
||||
</div>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue