From a32496edbe5ed6fc9be7baf414db5ec8cd87a7f4 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 10:05:41 +0800 Subject: [PATCH] feat: beian --- _config.yml | 7 +++++-- layout/_partial/footer.ejs | 7 ++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index b92bdea..553a42a 100644 --- a/_config.yml +++ b/_config.yml @@ -143,5 +143,8 @@ mathjax: false # 网站成立年份(默认为 2019,若填入年份小于当前年份,则显示为 2018-2019 类似的格式) since: 2015 -#是否显示页脚信息(建议保留,有助于本主题的推广) -pageFooter: true \ No newline at end of file +# 是否显示页脚信息(建议保留,有助于本主题的推广) +pageFooter: true + +# 备案信息(不需要就留空) +beian: '浙ICP备88888888' \ No newline at end of file diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 9b90ce6..33b8f02 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -8,7 +8,7 @@
  • <% if (theme.pageFooter){ %> - Powered by + Powered by <% var hexoLink = 'Hexo'; %> <% var themeLink = 'Ayer'; %> <%- hexoLink %> Theme <%- themeLink %> @@ -22,6 +22,11 @@ <%- partial('post/busuanzi') %> <% } %>
  • + <% if (theme.beian){ %> +
  • + <%= theme.beian %> +
  • + <% } %>
  • <% if (theme.cnzz&&theme.cnzz.enable){ %>