diff --git a/README.md b/README.md index 86a9e60..1dafe7a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,14 @@ - 构建:Vite - 部署:Vercel(静态构建 + Serverless Functions) +## 致谢 + +排名不分先后 + +- [`Netease Mini Player`](https://github.com/numakkiyu/NeteaseMiniPlayer): 迷你网易云播放器组件,为本项目的音乐播放功能提供支持。 + +感谢以上开源项目原作者与维护者的贡献。 + ## 配置指南 ### 站点配置文件 (`src/config/siteConfig.ts`) @@ -61,6 +69,28 @@ const siteConfig: SiteConfig = { startDate:"xxxx-xx-xx", // 网站创建日期 }, + music: { + // 是否启用音乐播放器 + enable: true, + // floating - 浮动模式播放器(推荐)- 用于播放网易云歌单 + // embed - 嵌入模式播放器 - 用于播放网易云单曲 + mode: "floating", // "floating" 或 "embed" + // 歌单ID:从网易云音乐链接获取,如 https://music.163.com/#/playlist?id=14273792576 + playlistId: undefined, // 例如: "14273792576" + // 歌曲ID:仅在嵌入模式下使用 + songId: undefined, // 例如: "554242291" + // 播放器位置(浮动模式): "bottom-left" | "bottom-right" | "top-left" | "top-right" + position: "bottom-left", + // 是否显示歌词 + lyric: true, + // 主题: "light" | "dark" | "auto" + theme: "dark", + // 是否自动播放 + autoplay: false, + // 是否默认以黑胶唱片状态启动(仅浮动模式) + defaultMinimized: true, + }, + umami: { enable: true, // 是否启用 Umami 分析 url: "https://cloud.umami.is/script.js", // Umami 分析脚本 URL,一般无需修改 diff --git a/index.html b/index.html index 153041f..2ba24c7 100644 --- a/index.html +++ b/index.html @@ -6,11 +6,15 @@