{"id":18904284,"url":"https://github.com/hugo-fixit/shortcode-mmt-netease","last_synced_at":"2025-07-23T09:39:28.581Z","repository":{"id":93298271,"uuid":"607583428","full_name":"hugo-fixit/shortcode-mmt-netease","owner":"hugo-fixit","description":"🎶 A Hugo theme component with a NetEase Cloud random comment shortcode.","archived":false,"fork":false,"pushed_at":"2025-06-18T07:31:51.000Z","size":2522,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T08:29:54.700Z","etag":null,"topics":["hugo","hugo-fixit","netease-cloud-music","shortcodes","theme-component"],"latest_commit_sha":null,"homepage":"https://lruihao.cn/guestbook/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugo-fixit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://paypal.me/Lruihao"]}},"created_at":"2023-02-28T09:12:29.000Z","updated_at":"2025-06-18T07:30:56.000Z","dependencies_parsed_at":"2024-06-19T20:02:44.754Z","dependency_job_id":"1c7096a3-98d6-486c-85b3-184d720df592","html_url":"https://github.com/hugo-fixit/shortcode-mmt-netease","commit_stats":null,"previous_names":["hugo-fixit/shortcode-mmt-netease","lruihao/hugo-shortcode-mmt-netease"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/hugo-fixit/shortcode-mmt-netease","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fshortcode-mmt-netease","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fshortcode-mmt-netease/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fshortcode-mmt-netease/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fshortcode-mmt-netease/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugo-fixit","download_url":"https://codeload.github.com/hugo-fixit/shortcode-mmt-netease/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fshortcode-mmt-netease/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266655864,"owners_count":23963557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hugo","hugo-fixit","netease-cloud-music","shortcodes","theme-component"],"created_at":"2024-11-08T09:08:00.029Z","updated_at":"2025-07-23T09:39:28.570Z","avatar_url":"https://github.com/hugo-fixit.png","language":"JavaScript","funding_links":["https://paypal.me/Lruihao"],"categories":[],"sub_categories":[],"readme":"# shortcode-mmt-netease\n\n![preview](https://user-images.githubusercontent.com/33419593/221810055-bf78de27-8f5d-4ffa-bf02-f60c0939f169.png)\n\n一个含有网易云随机评论 shortcode 的 Hugo 主题组件。\n\n## Demo\n\n\u003chttps://lruihao.cn/guestbook/\u003e\n\n## 安装\n\n\u003e [!TIP]\n\u003e 本组件适用于所有 Hugo 主题，但你必须有一个主体主题来使用它，以下以 [FixIt](https://github.com/hugo-fixit/FixIt) 主题为例。\n\n安装方法与 [安装主题](https://fixit.lruihao.cn/documentation/installation/) 相同。有几种安装方法，请选择一种。\n\n### 安装为 Hugo 模块\n\n首先确保你的项目本身是一个 [Hugo 模块](https://gohugo.io/hugo-modules/use-modules/#initialize-a-new-module)。\n\n然后将此主题组件添加到你的 `hugo.toml` 配置文件中：\n\n```toml\n[module]\n  [[module.imports]]\n    path = \"github.com/hugo-fixit/FixIt\"\n  [[module.imports]]\n    path = \"github.com/hugo-fixit/shortcode-mmt-netease\"\n```\n\n在第一次启动 Hugo 时，它将下载所需的文件。\n\n要更新到模块的最新版本，请运行：\n\n```bash\nhugo mod get -u\nhugo mod tidy\n```\n\n### 安装为 Git 子模块\n\n将 [FixIt](https://github.com/hugo-fixit/FixIt) 和此 git 存储库克隆到你的主题文件夹中，并将其添加为网站目录的子模块。\n\n```bash\ngit submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt\ngit submodule add https://github.com/hugo-fixit/shortcode-mmt-netease.git themes/shortcode-mmt-netease\n```\n\n接下来编辑项目的 `hugo.toml` 并将此主题组件添加到你的主题中：\n\n```toml\ntheme = [\"FixIt\", \"shortcode-mmt-netease\"]\n```\n\n## 使用\n\n`mmt-netease` shortcode 有以下命名参数：\n\n- **mid** _[必需]_（第一个位置参数）网易云歌单 ID\n- **autoplay** _[可选]_（第二个位置参数）是否自动播放，默认：`false`\n- **fixed** _[可选]_（第三个位置参数）是否启用固定模式，默认：`false`\n- **mini** _[可选]_（第四个位置参数）是否启用迷你模式，默认：`false`\n- **volume** _[可选]_（第五个位置参数）默认音量，注意播放器会记住用户设置，用户自己设置音量后默认音量将不起作用，默认：`0.7`\n- **current** _[可选]_（第六个位置参数）是否播放当前评论的音乐，默认：`false`\n\n这是一个用法示例：\n\n```markdown\n{{\u003c mmt-netease mid=\"2280569152\" autoplay=\"false\" \u003e}}\n\u003c!-- OR --\u003e\n{{\u003c mmt-netease \"2280569152\" false \u003e}}\n```\n\n## Dependencies\n\n- [APlayer](https://github.com/MoePlayer/APlayer)\n- [MetingJS](https://github.com/metowolf/MetingJS)\n- [mmt-webfont](https://github.com/Lruihao/mmt-webfont)\n- [vercel-proxy](https://github.com/Lruihao/vercel-proxy?#netease-comment)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugo-fixit%2Fshortcode-mmt-netease","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugo-fixit%2Fshortcode-mmt-netease","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugo-fixit%2Fshortcode-mmt-netease/lists"}