一般编辑主题下的 footer.php

[root@10-23-159-191 typecho]# vim usr/themes/default/footer.php

在标签内新增:

<font size="2">   <span class="mod_copyright_split">|</span>   </font>
<font size="1"> <a target="_blank" href="https://beian.miit.gov.cn">闽ICP备2021007947号-1</a></font>
<font size="2">   <span class="mod_copyright_split">|</span>   </font>
<font size="1"> <img src="https://www.vkxx.com/usr/uploads/other/gongan.png"/> <a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35010402351226">闽公网安备 35010402351226号</p></a></font>

handsome主题可在 设置外观->开发者设置->博客底部左侧信息中添加以上代码

也可以用美化效果:

<div class="github-badge">
    <a href="https://beian.miit.gov.cn" target="_blank">
    <span class="badge-subject">闽ICP备</span><span class="badge-value bg-red">2021007947号</span>
    </a>
</div>
<div class="github-badge">
    <a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35010402351226" target="_blank">
    <span class="badge-subject"><img src="https://www.vkxx.com/usr/uploads/other/gongan.png" style="height:12px;"/>闽公网安备</span><span class="badge-value bg-red">35010402351226号</span>
    </a>
</div>

标签: typecho

添加新评论