From 7b8e03e35a2d22f4cc2902e396d42ee5e66763bd Mon Sep 17 00:00:00 2001 From: Kwicxy <65797866+Kwicxy@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:45:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BF=AB=E9=80=9F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E5=A4=87=E6=A1=88=E5=8F=B7XD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对中国用户还蛮实用的 --- _config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_config.yml b/_config.yml index 3517322..d95808a 100644 --- a/_config.yml +++ b/_config.yml @@ -143,6 +143,16 @@ footer: # Dependencies: https://github.com/theme-next/hexo-symbols-count-time count: false powered: true + + # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, https://beian.mps.gov.cn + beian: + enable: false + # The id of ICP beian. e.g. 京ICP备1919081145号-1 + icp: 京ICP备1919081145号-1 + # The id of gongan beian. e.g. 京公安网备11451401919810号 + gongan_id: + # The icon for gongan beian. Login and See: https://beian.mps.gov.cn/web/business/businessHome/website + gongan_icon_url: post: # Dependencies: https://github.com/theme-next/hexo-symbols-count-time From 175b616c8b58eea4aa863fe0cea49bf6adbae4b2 Mon Sep 17 00:00:00 2001 From: Kwicxy <65797866+Kwicxy@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:47:47 +0800 Subject: [PATCH 2/2] Update footer.njk --- layout/_partials/footer.njk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/layout/_partials/footer.njk b/layout/_partials/footer.njk index 5caadc2..c5bcfaa 100644 --- a/layout/_partials/footer.njk +++ b/layout/_partials/footer.njk @@ -24,6 +24,20 @@ {%- endif %} + {%- if theme.footer.beian.enable %} +
+ {{theme.footer.beian.icp}} + {%- if theme.footer.beian.gongan_icon_url %} + + {%- endif %} + {%- if theme.footer.beian.gongan_id %} + + {{theme.footer.beian.gongan_id}} + + {%- endif %} +
+ {%- endif %} + {%- if theme.footer.powered %}
{{ __('footer.powered', _url('https://hexo.io', 'Hexo') + ' & Theme.' + _url('https://github.com/amehime/hexo-theme-shoka', 'Shoka')) }}