From 28d8716cf4b82ba83fc213ec99112b39bfd7543d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=AE=87?= <448766534@qq.com> Date: Thu, 27 Feb 2020 13:55:58 +0800 Subject: [PATCH] fix: icp --- _config.yml | 7 +++++-- layout/_partial/footer.ejs | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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 %>
  • <% } %>