【Hexo】Butterfly主题添加备案号

方法一

修改 主题配置文件

1
2
3
4
5
6
7
footer:
owner:
enable: true
since: 2023
custom_text:
- <a href="https://beian.miit.gov.cn"><img class="icp-icon" src="https://img.shiguangdev.cn/i/2024/10/17/6710c59fd9fc7.png"><span>xICP备xxx号-x/span></a>
copyright: true # Copyright of theme and framework

效果如下

image-20240707084835750

方法二

修改 themes/butterfly/layout/includes/footer.pug,添加以下代码

1
2
<img src="https://img.shiguangdev.cn/i/2024/10/17/6710c59fd9fc7.png" style="vertical-align: middle;" height="20px">
<a href="http://beian.miit.gov.cn/" style="color:#f72b07" target="_blank">XICP备xxxxxxx-x</a>

image-20240526131037253