Skip to content

Commit 42323c8

Browse files
committed
feat: 添加萌国ICP备案支持
1 parent b7d65e1 commit 42323c8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ icp:
531531
beian: # 网安备案号
532532
recordcode: # 网安备案链接中的recordcode参数
533533

534+
# 萌国 ICP 备案
535+
moe_icp:
536+
icpnumber: # 萌国ICP备案号
537+
534538
# show the copyright below each article
535539
article_copyright:
536540
enable: false

layout/_partial/footer.ejs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<% } %>
3636
<% if (theme.icp.icpnumber) { %>
3737
<div class="footer-beian">
38-
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://beian.miit.gov.cn" data-pjax-state=""><%= theme.icp.icpnumber %></a>
38+
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://beian.miit.gov.cn"><%= theme.icp.icpnumber %></a>
3939
</div>
4040
<% } %>
4141
<% if (theme.icp.beian && theme.icp.recordcode) { %>
@@ -44,6 +44,18 @@
4444
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://beian.mps.gov.cn/#/query/webSearch?code=<%= theme.icp.recordcode %>"><%= theme.icp.beian %></a>
4545
</div>
4646
<% } %>
47+
<% if (theme.moe_icp.icpnumber) { %>
48+
<div class="footer-beian">
49+
<img
50+
style="object-fit: contain;margin-right: 2px;"
51+
src="https://icp.gov.moe/images/ico64.png"
52+
alt=""
53+
width="24"
54+
height="24"
55+
/>
56+
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://icp.gov.moe/?keyword=<%= theme.moe_icp.icpnumber %>">ICP<%= theme.moe_icp.icpnumber %></a>
57+
</div>
58+
<% } %>
4759
<% if (theme.footer.busuanzi) { %>
4860
<div>
4961
<span class="icon-eye"></span>

0 commit comments

Comments
 (0)