Skip to content

Commit

Permalink
添加文章底部标签和授权说明
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertSweat authored and InsertSweat committed Jun 14, 2017
1 parent 7cf84be commit 55dba85
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
22 changes: 20 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,25 @@
<?php the_content(); ?>
</div>
</article>

<div>
<ul class="post-copyright">
<li class="post-copyright-author">
<strong>本文作者:</strong>
<?php the_author() ?>
</li>
<li class="post-copyright-link">
<strong>本文链接:</strong>
<a href="<?php the_permalink(); ?>" title="使用 Travis CI 自动更新 GitHub Pages"><?php the_permalink(); ?></a>
</li>
<li class="post-copyright-license">
<strong>版权声明: </strong>
本博客所有文章除特别声明外,均采用 <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/cn/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0 CN</a> 许可协议。转载请注明出处!
</li>
</ul>
</div>
<div class="post-tags">
<?php the_tags('', '') ?>
</div>
<div class="post-nav clearfix">
<div class="prev">
<?php if (get_previous_post()) { previous_post_link('<i class="fa fa-chevron-left"></i> %link');} ?>
Expand Down Expand Up @@ -84,7 +102,7 @@
outline: none;
}
#SOHUCS #SOHU_MAIN .module-cmt-box .post-wrap-w .wrap-action-w .action-issue-w .issue-btn-w a button.btn-fw:after{
content: "发 送"
content: "发表评论"
}
#SOHUCS #SOHU_MAIN .module-cmt-box .post-wrap-w .wrap-action-w .action-issue-w .issue-btn-w a button.btn-fw:hover{
background-image: none;
Expand Down
29 changes: 29 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,35 @@ pre:before{
color:#eee;

}

/*授权*/
.post-copyright{
padding: 0.5em 1em;
border-left: 3px solid #ff1700;
background-color: #f9f9f9;
margin-bottom: 1rem;
}
.post-copyright a{
border-bottom: 1px solid #555;
}

/*post-tags*/
.post-tags{
text-align: center;
}
.post-tags a{
display: inline-block;
margin-right: 10px;
font-size: 13px;
color: #555;
text-decoration: none;
border-bottom: 1px solid #999;
word-wrap: break-word;
}
.post-tags a:before{
content: '#';
}

/*comments*/
.comment{
list-style: none;
Expand Down

0 comments on commit 55dba85

Please sign in to comment.