فهرست منبع

Add meta control in layout

Miles Pong 9 سال پیش
والد
کامیت
0b1a5fc970
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      layout/common/article.ejs

+ 2 - 0
layout/common/article.ejs

@@ -7,6 +7,7 @@
         <% if (post.link || post.title) { %>
             <header class="article-header">
                 <%- partial('post/title', { class_name: 'article-title' }) %>
+                <% if ((post.meta == null) || (page.meta != null && post.meta)){ %>
                 <div class="article-meta">
                     <%- partial('post/date', { class_name: 'article-date', date_format: null }) %>
                     <%- partial('post/pv') %>
@@ -14,6 +15,7 @@
                     <%- partial('post/author') %>
                     -->
                 </div>
+                <% } %>
             </header>
         <% } %>
         <div class="article-entry" itemprop="articleBody">