Miles Pong 9 роки тому
батько
коміт
8087ebeb0b

+ 7 - 3
layout/common/article.ejs

@@ -10,7 +10,9 @@
                 <div class="article-meta">
                     <%- partial('post/date', { class_name: 'article-date', date_format: null }) %>
                     <%- partial('post/pv') %>
+                    <!--
                     <%- partial('post/author') %>
+                    -->
                 </div>
             </header>
         <% } %>
@@ -30,14 +32,16 @@
             <%- post.content %>
         <% } %>
         </div>
-        <footer class="article-footer">
+        <div class="article-meta-extra">
             <%- partial('post/category') %>
-            <% if (is_post()){ %>
             <%- partial('post/tag') %>
+        </div>
+        <% if (is_post()) {%>
+        <footer class="article-footer">
             <%- partial('share/index', { post: post }) %>
-            <% } %>
             <%- partial('comment/counter', { post: post }) %>
         </footer>
+        <% } %>
     </div>
     <% if (!index) { %>
         <%- partial('post/nav') %>

+ 2 - 0
layout/common/post/date.ejs

@@ -3,8 +3,10 @@
     <i class="fa fa-upload" aria-hidden="true"></i>
     <time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
   </div>
+  <!--
   <div style="display:inline;">
     <i class="fa fa-edit" aria-hidden="true"></i>
     <time datetime="<%= date_xml(post.updated) %>" itemprop="dateUpdated"><%= date(post.updated, date_format) %></time>
   </div>
+  -->
 </div>

+ 1 - 1
layout/common/post/pv.ejs

@@ -1,5 +1,5 @@
 <% if (is_post()){ %>
-<div class="article-category">
+<div class="article-pv">
 	<i class="fa fa-line-chart"></i>
 	<span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin"></i></span> <%= __('article.hits') %>
 </div>

+ 1 - 0
source/css/_partial/article.styl

@@ -61,6 +61,7 @@
     p, table
         line-height: line-height
         margin: line-height 0
+        text-align:justify
     h1, h2, h3, h4, h5, h6
         font-weight: bold
     h1, h2, h3, h4, h5, h6

+ 2 - 2
source/css/custom.styl

@@ -1,7 +1,7 @@
-.article-meta, .article-meta a
+.article-meta, .article-meta a, article-meta-extra
     color: #9a9ea3
     
-.article-meta .article-author
+.article-meta .article-author, .article-meta .article-pv, .article-category
     float:right
 
 .article-footer div