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 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')) }}