尾部添加公安备案

尾部添加公安备案显示,备案链接添加”rel="nofollow"“属性,有利于SEO
This commit is contained in:
kaixin 2020-08-30 17:07:41 +08:00
parent c775133f5b
commit e3724557a3
3 changed files with 15 additions and 1 deletions

View File

@ -161,6 +161,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=" #公安备案链接
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