Merge pull request #79 from bilikxjh/master

添加公安备案信息显示/Add public security record information display
This commit is contained in:
Eric Shen 2020-09-04 19:49:15 +08:00 committed by GitHub
commit 4d3776ea3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -167,6 +167,12 @@ icp:
enable: false enable: false
url: "http://www.beian.miit.gov.cn/" # 备案链接 url: "http://www.beian.miit.gov.cn/" # 备案链接
text: "浙ICP备88888888" # 备案信息 text: "浙ICP备88888888" # 备案信息
#公安备案信息尾部显示
gongan:
enable: false
img: /images/beian.png #公安备案图片
url: "http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=01234567890123" #公安备案链接
text: "湘公网安备01234567890123号" #公安备案信息
# 评论1、Valine(推荐)2、Gitalk3、MiniValine # 评论1、Valine(推荐)2、Gitalk3、MiniValine

View File

@ -29,7 +29,15 @@
<ul> <ul>
<% if (theme.icp&&theme.icp.enable){ %> <% if (theme.icp&&theme.icp.enable){ %>
<li> <li>
<a href="<%= theme.icp.url %>" target="_black"><%= theme.icp.text %></a> <a href="<%= theme.icp.url %>" target="_black" rel="nofollow"><%= theme.icp.text %></a>
</li>
<% } %>
</ul>
<ul>
<% if (theme.gongan&&theme.gongan.enable){ %>
<li>
<img src="<%= theme.gongan.img %>"></img>
<a href="<%= theme.gongan.url %>" target="_black" rel="nofollow"><%= theme.gongan.text %></a>
</li> </li>
<% } %> <% } %>
</ul> </ul>

BIN
source/images/beian.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB