Skip to content

Commit

Permalink
Expand beian options for users in mainland China (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
InterHorse authored and 1v9 committed Aug 23, 2019
1 parent ed9630c commit 0d1454b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,16 @@ footer:
# Version info of NexT after scheme info (vX.X.X).
version: true

# Beian ICP information for Chinese users. See: http://www.beian.miit.gov.cn
# Beian ICP and gongan information for Chinese users. See: http://www.beian.miit.gov.cn, http://www.beian.gov.cn
beian:
enable: false
icp:
# The digit in the num of gongan beian.
gongan_id:
# The full num of gongan beian.
gongan_num:
# The icon for gongan beian. See: http://www.beian.gov.cn/portal/download
gongan_icon_url:

# Creative Commons 4.0 International License.
# See: https://creativecommons.org/share-your-work/licensing-types-examples
Expand Down
6 changes: 5 additions & 1 deletion layout/_partials/footer.swig
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<div class="copyright">{#
#}{%- set current = date(Date.now(), "YYYY") %}{#
#}{%- if theme.footer.beian.enable %}{#
#} {{ next_url('http://www.beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}{#
#}{{ next_url('http://www.beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
{%- if theme.footer.beian.gongan_icon_url %}<span><img src="{{ theme.footer.beian.gongan_icon_url }}" style="display:inline-block;"/>
{%- endif %}
{{ next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id,
theme.footer.beian.gongan_num + ' ') }}{#
#}{%- endif %}{#
#}&copy; {% if theme.footer.since and theme.footer.since != current %}{{ theme.footer.since }} – {% endif %}{#
#}<span itemprop="copyrightYear">{{ current }}</span>
Expand Down

0 comments on commit 0d1454b

Please sign in to comment.