butterfly主题添加域名备案信息
butterfly主题添加备案信息
由于新版butterfly主题删除了ICP配置,所以我们无法直接通过改_config.yml文件来设置备案信息显示。
1.按照路径找到footer.pug文件
themes - butterfly - layout - includes - footer.pug
2.打开编辑加入这两行代码。
截图
代码
#footer-wrap
if theme.footer.owner.enable
- var now = new Date()
- var nowYear = now.getFullYear()
if theme.footer.owner.since && theme.footer.owner.since != nowYear
.copyright!= `©${theme.footer.owner.since} - ${nowYear} By ${config.author}`
else
.copyright!= `©${nowYear} By ${config.author}`
if theme.footer.copyright
.framework-info
//span= _p('footer.framework') + ' '
//a(href='https://hexo.io')= 'Hexo'
//span.footer-separator |
//span= _p('footer.theme') + ' '
//a(href='https://github.com/jerryc127/hexo-theme-butterfly')= 'Butterfly'
//span.footer-separator |
<img src="https://xxx.com/xxx.png">
<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">闽ICP备2021xxx号</a>
if theme.footer.custom_text
.footer_custom_text!=`${theme.footer.custom_text}`
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 云运维!