From 196253f025f36b7315d474c7625e50ced6a1fd48 Mon Sep 17 00:00:00 2001
From: shenyu <448766534@qq.com>
Date: Thu, 27 Feb 2020 19:47:53 +0800
Subject: [PATCH] fix: music
---
_config.yml | 4 ++--
layout/_partial/music.ejs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/_config.yml b/_config.yml
index 3fb869a..2e770a1 100644
--- a/_config.yml
+++ b/_config.yml
@@ -42,7 +42,7 @@ music:
enable: false
# 播放器尺寸类型(1:小尺寸、2:大尺寸)
type: 1
- id: 518895142 # 网易云分享的音乐ID(更换音乐请更改此配置项)
+ id: 22707008 # 网易云分享的音乐ID(更换音乐请更改此配置项)
autoPlay: true # 是否开启自动播放
# 文章配置
@@ -125,7 +125,7 @@ gitalk:
owner: # GitHub ID
admin: # GitHub ID
-# GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/)
+# GitHub Ribbons-封面右上角的forkme
github:
# (关闭请设置为false)
url: https://github.com/Shen-Yu/hexo-theme-ayer
diff --git a/layout/_partial/music.ejs b/layout/_partial/music.ejs
index c09dad5..6c327cf 100644
--- a/layout/_partial/music.ejs
+++ b/layout/_partial/music.ejs
@@ -3,7 +3,7 @@
<% var defaultHeight = theme.music.type == 1 ? '32' : '66'; %>
<% var defaultIframeHeight = theme.music.type == 1 ? '52' : '86'; %>
+ src="//music.163.com/outchain/player?type=2&id=<%=theme.music.id||22707008%>&auto=<%=theme.music.autoPlay?1:0%>&height=<%=defaultHeight%>">