hexo butterfly主题 添加全局吸底APlayer
发布日期:2021-06-29 14:32:20
浏览次数:2
分类:技术文章
本文共 1188 字,大约阅读时间需要 3 分钟。
第一步
打开 themes\Butterfly\layout\includes\head.pug
结尾加一句
include ./third-party/aplayer.pug
第二步
然后在themes\Butterfly\layout\includes\third-party\
里面新建一个文件叫 aplayer.pug
,内容如下
if theme.aplayer && theme.aplayer.enable .aplayer(data-id=theme.aplayer.id data-server=theme.aplayer.server data-type=theme.aplayer.type data-fixed=theme.aplayer.fixed data-mini=theme.aplayer.mini data-listFolded=theme.aplayer.listFolded data-order=theme.aplayer.order data-preload=theme.aplayer.preload) each item in theme.aplayer.css link(rel='stylesheet', href=item) each item in theme.aplayer.js script(src=item)
第三步
然后打开butterfly.yml
(如果你没有启用的话,就打开source/_data/butterfly.yml
) 加入以下内容
##侧边栏歌单aplayer: enable: true js: - https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.js - https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js css: - https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.css id: 2693598459 server: netease type: playlist fixed: 'true' order: random preload: none listFolded: 'false'
解决与TOC冲突问题
然后重新生成就可以看到 aplayer
了,这里的id是我的网易云歌单号,可以修改成别的.
Page
时会发现 aplayer
会和 TOC
(怎么又是它) 的切换按钮重合 打开 themes\Butterfly\source\css\_global\index.styl
修改第61行 最后,大功告成 ✿✿ヽ(°▽°)ノ✿ 参考:
Author:转载地址:https://chocolate.blog.csdn.net/article/details/106211309 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过,博主的博客真漂亮。。
[***.116.15.85]2024年04月09日 06时30分45秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
10年老兵!从大学毕业生到嵌入式系统工程师的修炼之道……
2019-04-29
如何才能学好单片机?
2019-04-29
一根网线有这么多“花样”,你知道吗?
2019-04-29
雷军1994年写的诗一样的代码,我把它运行起来了!
2019-04-29
2020年大学生电子设计竞赛,B题,单相在线式不间断电源,详细技术方案!
2019-04-29
大佬终于把鸿蒙OS讲明白了,收藏了!
2019-04-29
国内大陆有哪些芯片公司处于世界前10?一起看看!
2019-04-29
单精度、双精度、多精度和混合精度计算的区别是什么?
2019-04-29
中国35位“大国工匠”榜单出炉!西工大、西电合计占半壁江山!清华仅1人!...
2019-04-29
知乎热议:嵌入式开发中C++好用吗?
2019-04-29
2020,Python 已死?
2019-04-29
漫画:程序员相亲?哈哈哈哈哈哈
2019-04-29
30种EMC标准电路分享,再不收藏就晚了!
2019-04-29
这100道Linux常见面试题,看看你会多少?
2019-04-29
十年硬件老司机,结合实际案例,带你探索单片机低功耗设计!
2019-04-29
“2020年嵌入式软件秋招经验和对嵌入式软件未来的一点思考”
2019-04-29
嵌入式的坑在哪方面?
2019-04-29
三种常见嵌入式设备通信协议
2019-04-29
什么是模块化代码?如何写?
2019-04-29
STM32串口发送数据和接收数据方式总结
2019-04-29