diff --git a/_config.yml b/_config.yml index e0fdad6..02bea29 100644 --- a/_config.yml +++ b/_config.yml @@ -146,5 +146,8 @@ since: 2015 # 是否显示页脚信息(建议保留,有助于本主题的推广) pageFooter: true -# 备案信息(不需要就留空) -beian: '' \ No newline at end of file +#ICP备案信息尾部显示 +icp: + enable: false + url: 'http://www.beian.miit.gov.cn/' # 备案链接 + text: '浙ICP备88888888' # 备案信息 \ No newline at end of file diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 33b8f02..cec4f28 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -22,9 +22,9 @@ <%- partial('post/busuanzi') %> <% } %> - <% if (theme.beian){ %> + <% if (theme.icp&&theme.icp.enable){ %>
  • - <%= theme.beian %> + <%= theme.icp.text %>
  • <% } %>