This commit is contained in:
沈宇 2020-02-27 13:55:58 +08:00
parent 1f6b859952
commit 28d8716cf4
2 changed files with 7 additions and 4 deletions

View File

@ -146,5 +146,8 @@ since: 2015
# 是否显示页脚信息(建议保留,有助于本主题的推广) # 是否显示页脚信息(建议保留,有助于本主题的推广)
pageFooter: true pageFooter: true
# 备案信息(不需要就留空) #ICP备案信息尾部显示
beian: '' icp:
enable: false
url: 'http://www.beian.miit.gov.cn/' # 备案链接
text: '浙ICP备88888888' # 备案信息

View File

@ -22,9 +22,9 @@
<%- partial('post/busuanzi') %> <%- partial('post/busuanzi') %>
<% } %> <% } %>
</li> </li>
<% if (theme.beian){ %> <% if (theme.icp&&theme.icp.enable){ %>
<li> <li>
<a href="http://www.beian.miit.gov.cn/" target="_black"><%= theme.beian %></a> <a href="<%= theme.icp.url %>" target="_black"><%= theme.icp.text %></a>
</li> </li>
<% } %> <% } %>
<li> <li>