commit
651ccc266c
@ -9,6 +9,7 @@
|
|||||||
<% if (post.link || post.title){ %>
|
<% if (post.link || post.title){ %>
|
||||||
<header class="article-header">
|
<header class="article-header">
|
||||||
<%- partial('post/title', {class_name: 'article-title'}) %>
|
<%- partial('post/title', {class_name: 'article-title'}) %>
|
||||||
|
<%- partial('post/author', {class_name: 'article-author'}) %>
|
||||||
</header>
|
</header>
|
||||||
<% } %> <% if (index || is_post()) { %>
|
<% } %> <% if (index || is_post()) { %>
|
||||||
<div class="article-meta">
|
<div class="article-meta">
|
||||||
|
8
layout/_partial/post/author.ejs
Normal file
8
layout/_partial/post/author.ejs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<% if (post.authors && post.authors.length){ %>
|
||||||
|
<div class="<%= class_name %>" <% if (!index){ %> style="text-align: center" <% }%>>
|
||||||
|
作者:<% for (var i = 0; i < post.authors.length - 1; i++) { %>
|
||||||
|
<%= post.authors[i]%> ,
|
||||||
|
<% }%> <%= post.authors[post.authors.length - 1] %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% } %>
|
@ -106,6 +106,13 @@
|
|||||||
color body-color
|
color body-color
|
||||||
padding-left 2rem
|
padding-left 2rem
|
||||||
border-left 4px solid body-color
|
border-left 4px solid body-color
|
||||||
|
.article-author
|
||||||
|
display block
|
||||||
|
font-size 20px
|
||||||
|
margin-bottom 3rem
|
||||||
|
text-decoration none
|
||||||
|
color body-color
|
||||||
|
padding-left 2rem
|
||||||
|
|
||||||
.article-footer
|
.article-footer
|
||||||
clearfix()
|
clearfix()
|
||||||
|
2
source/dist/main.css
vendored
2
source/dist/main.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user