diff --git a/README.md b/README.md index 9f778b94..4ccab33c 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ If you are also using Redefine, please go to [Redefine Theme Showcase](https://r ## ⛰️ Some functions -- [Note Module](https://redefine-docs.ohevan.com/docs/advanced/plugins/note-module) +- [Note Module](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/note-module) - [Friend Link Page](https://redefine-docs.ohevan.com/docs/advanced/friend-link) -- [Mathjax Support](https://redefine-docs.ohevan.com/docs/advanced/plugins/mathjax) +- [Mathjax Support](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mathjax) - Code block language display - Light/Dark mode switching - [Font Awesome 6.1.0 Pro](https://redefine-docs.ohevan.com/docs/configuration-guide/fontawesome) (contains different styles like Duotone/Regular/Thin) @@ -44,8 +44,9 @@ If you are also using Redefine, please go to [Redefine Theme Showcase](https://r - [Customizable footer](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [Site Uptime Display](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [Article Header Image](https://redefine-docs.ohevan.com/docs/advanced/home-contents/thumbnail) -- [Mermaid JS support](https://redefine-docs.ohevan.com/docs/advanced/plugins/mermaid) +- [Mermaid JS support](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mermaid) - SEO friendly +- [Aplayer support](https://redefine-docs.ohevan.com/docs/advanced/theme-plugins/aplayer) diff --git a/README_zh-CN.md b/README_zh-CN.md index 626bf15c..1a54caf3 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -33,9 +33,9 @@ ## ⛰️ 部分功能 -- [笔记模块](https://redefine-docs.ohevan.com/docs/advanced/plugins/note-module) +- [笔记模块](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/note-module) - [友链样式](https://redefine-docs.ohevan.com/docs/advanced/friend-link) -- [数学公式](https://redefine-docs.ohevan.com/docs/advanced/plugins/mathjax) +- [数学公式](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mathjax) - 代码块语言显示 - Light/Dark 模式切换 - [Font Awesome 6.1.0 Pro](https://redefine-docs.ohevan.com/docs/configuration-guide/fontawesome)(包含 Duotone/Regular/Thin 等不同样式) @@ -43,8 +43,9 @@ - [可自定义页脚](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [网站运行时间显示](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [文章头图](https://redefine-docs.ohevan.com/docs/advanced/home-contents/thumbnail) -- [Mermaid JS 支持](https://redefine-docs.ohevan.com/docs/advanced/plugins/mermaid) +- [Mermaid JS 支持](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mermaid) - SEO 友好 +- [Aplayer 音乐播放器支持](https://redefine-docs.ohevan.com/docs/advanced/theme-plugins/aplayer) ## ☁️ 安装 diff --git a/README_zh-TW.md b/README_zh-TW.md index b2e2bbf4..c0fedc88 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -35,9 +35,9 @@ ## ⛰️ 部分功能 -- [筆記模塊](https://redefine-docs.ohevan.com/docs/advanced/plugins/note-module) +- [筆記模塊](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/note-module) - [友鏈樣式](https://redefine-docs.ohevan.com/docs/advanced/friend-link) -- [數學公式](https://redefine-docs.ohevan.com/docs/advanced/plugins/mathjax) +- [數學公式](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mathjax) - 代碼塊語言顯示 - Light/Dark 模式切換 - [Font Awesome 6.1.0 Pro](https://redefine-docs.ohevan.com/docs/configuration-guide/fontawesome)(包含 Duotone/Regular/Thin 等不同樣式) @@ -45,8 +45,9 @@ - [可自定義頁腳](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [網站運行時間顯示](https://redefine-docs.ohevan.com/docs/configuration-guide/footer) - [文章頭圖](https://redefine-docs.ohevan.com/docs/advanced/home-contents/thumbnail) -- [Mermaid JS 支持](https://redefine-docs.ohevan.com/docs/advanced/plugins/mermaid) +- [Mermaid JS 支持](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mermaid) - SEO 友好 +- [Aplayer 音乐播放器支持](https://redefine-docs.ohevan.com/docs/advanced/theme-plugins/aplayer) ## ☁️ 安裝 diff --git a/_config.yml b/_config.yml index f37d9371..743ce267 100755 --- a/_config.yml +++ b/_config.yml @@ -298,9 +298,26 @@ inject: - - +# --------------------------------------------------------------------------------------- +# Theme plugins +# --------------------------------------------------------------------------------------- +plugins: + aplayer: # APlayer (fixed version) + enable: false + audio: + - name: # audio name + artist: # audio artist + url: # audio url + cover: # audio cover url + - name: + artist: + url: + cover: + + # --------------------------------------------------------------------------------------- # Redefine Theme version (Please dont modify it) # Please go to github to update the latest version frequently # Github: https://github.com/EvanNotFound/hexo-theme-redefine # --------------------------------------------------------------------------------------- -version: 1.1.3 \ No newline at end of file +version: 1.1.4 \ No newline at end of file diff --git a/layout/_partials/components/aplayer.ejs b/layout/_partials/components/aplayer.ejs new file mode 100644 index 00000000..048dc6bc --- /dev/null +++ b/layout/_partials/components/aplayer.ejs @@ -0,0 +1,5 @@ +
+<% if (theme.plugins.aplayer.enable) { %> + <%- __js('js/libs/APlayer.min.js') %> + <%- __js('js/plugins/aplayer.js') %> +<% } %> \ No newline at end of file diff --git a/layout/_partials/scripts.ejs b/layout/_partials/scripts.ejs index 2df15738..84a8e878 100755 --- a/layout/_partials/scripts.ejs +++ b/layout/_partials/scripts.ejs @@ -24,6 +24,8 @@ <%- __css('assets/odometer-theme-minimal.css') %> <% } %> + +