feat: beian

This commit is contained in:
沈宇 2020-02-27 10:05:41 +08:00
parent 4fcc3ff32b
commit a32496edbe
2 changed files with 11 additions and 3 deletions

View File

@ -143,5 +143,8 @@ mathjax: false
# 网站成立年份(默认为 2019若填入年份小于当前年份则显示为 2018-2019 类似的格式)
since: 2015
#是否显示页脚信息(建议保留,有助于本主题的推广)
# 是否显示页脚信息(建议保留,有助于本主题的推广)
pageFooter: true
# 备案信息(不需要就留空)
beian: '浙ICP备88888888'

View File

@ -8,7 +8,7 @@
</li>
<li>
<% if (theme.pageFooter){ %>
Powered by
Powered by
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
<% var themeLink = '<a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>'; %>
<%- hexoLink %> Theme <%- themeLink %>
@ -22,6 +22,11 @@
<%- partial('post/busuanzi') %>
<% } %>
</li>
<% if (theme.beian){ %>
<li>
<a href="http://www.beian.miit.gov.cn/" target="_black"><%= theme.beian %></a>
</li>
<% } %>
<li>
<!-- cnzz统计 -->
<% if (theme.cnzz&&theme.cnzz.enable){ %>