在文章title下方为每篇文章增加作者信息

This commit is contained in:
Wang Wei 2021-04-08 19:36:55 +08:00
parent 6a407dc892
commit 826a654766
3 changed files with 9 additions and 1 deletions

View File

@ -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">

View File

@ -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()

File diff suppressed because one or more lines are too long