0
点赞
收藏
分享

微信扫一扫

Hexo搭建个人博客(四)

伊人幽梦 2022-05-03 阅读 78
前端

转载自我的个人博客:https://blog.wufengsheng.top/

添加播放器插件代码
<!-- 网易云音乐插件 -->
<% if (theme.music && theme.music.enable){ %>
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0"
            width="<%=theme.music.max?330:298%>"
            height="<%=theme.music.max?86:52%>"
            src="//music.163.com/outchain/player?type=2&id=<%=theme.music.id%>&auto=<%=theme.music.autoPlay?1:0%>&height=<%=theme.music.max?66:32%>">
    </iframe>
<% } %>
# 网易云音乐插件
music:
    enable: true   # 开启音乐插件
    max: false     # 大尺寸
    id: 1901371647 # 网易云分享的音乐ID(更换音乐请更改此配置项)
    autoPlay: true # 是否开启自动播放
播放器效果

在这里插入图片描述

转载自我的个人博客:https://blog.wufengsheng.top/

举报

相关推荐

0 条评论