From 9ea2ad2dab819689a8efd012796aecbef2aca701 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Thu, 7 Jul 2016 22:52:39 +0800 Subject: [PATCH] fix: hide date information for pages --- layout/common/article.ejs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/layout/common/article.ejs b/layout/common/article.ejs index 811ef989..36f0830a 100644 --- a/layout/common/article.ejs +++ b/layout/common/article.ejs @@ -5,10 +5,12 @@ <%- partial('post/title', { class_name: 'article-title' }) %> <% } %> -
- <%- partial('post/date', { class_name: 'article-date', date_format: null }) %> - <%- partial('post/tag') %> -
+ <% if (post.layout != 'page') { %> +
+ <%- partial('post/date', { class_name: 'article-date', date_format: null }) %> + <%- partial('post/tag') %> +
+ <% } %>
<%- post.content %>