feat: Copyright

This commit is contained in:
shenyu
2020-02-07 12:42:33 +08:00
parent ad93a588f7
commit 14f1f432c9
7 changed files with 56 additions and 10 deletions

View File

@@ -33,18 +33,32 @@
<% } else { %>
<%- post.content %>
<% } %>
<!-- 打赏 -->
<!-- reward -->
<% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index && !post.no_reward){ %>
<div id="reward-btn">
打赏
</div>
<% } %>
</div>
<!-- copyright -->
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 && post.copyright)) && !index){ %>
<div class="declare">
<ul class="post-copyright">
<li>
<i class="ri-copyright-line"></i>
<strong>版权声明: </strong s>
本博客所有文章除特别声明外,均采用 <a href="https://www.apache.org/licenses/LICENSE-2.0.html" rel="external nofollow"
target="_blank">Apache License 2.0</a> 许可协议。转载请注明出处!
</li>
</ul>
</div>
<% } %>
<footer class="article-footer">
<% if (!index && theme.share_enable){ %>
<%- partial('post/share') %>
<% } %>
<%- partial('post/tag') %>
</footer>
</div>

View File

@@ -8,6 +8,7 @@
<%- theme.share_text %>
</span>
<div class="share-wrap">
<i class="arrow"></i>
<div class="share-icons">
<% if( theme.share_china ){ %>
<a class="weibo share-sns" href="javascript:;" data-type="weibo">