Giter Club home page Giter Club logo

Comments (9)

grzhan avatar grzhan commented on June 5, 2024

你好,抱歉这么久才回复。
当前版本的 hexo-tag-aplayer 暂时只支持在文章页加载 aplayer.js
而目前在开发的 3.0 版本将支持非文章页的加载,
该版本将不日发布,届时如果碰到问题欢迎在这里报告

from hexo-tag-aplayer.

 avatar commented on June 5, 2024

@grzhan 请问如何才能在文章页以外的地方使用aplay播放音乐。

from hexo-tag-aplayer.

grzhan avatar grzhan commented on June 5, 2024

@TranchBellic @xzy997
请提供您使用的主题,一般来说 Hexo 通过插件来插入代码具有一定局限性
另外可以考虑直接在主题的侧边栏代码中直接添加 Aplayer 的调用代码

from hexo-tag-aplayer.

JadeVane avatar JadeVane commented on June 5, 2024

请问aplayer现在能添加到文章外的页面了吗? @grzhan

from hexo-tag-aplayer.

huweihuang avatar huweihuang commented on June 5, 2024

同样有这个需求,建议是可以通过参数配置的方式,在网页的左下角固定位置(距离宜调整好)可以加载该播放器的插件,插件同样支持歌单的效果。

from hexo-tag-aplayer.

myoumeng avatar myoumeng commented on June 5, 2024

@grzhan 请问该怎么调用呢?直接“{%”开头的那个放入_sidebar.swig文件中吗?似乎没效果诶

from hexo-tag-aplayer.

 avatar commented on June 5, 2024

@JadeVane @myoumeng 在md里插入播放器后你们去看生成的html文件。直接复制那段代码到你想要的地方,改下歌单id就好了

from hexo-tag-aplayer.

Monster0303 avatar Monster0303 commented on June 5, 2024

@JadeVane @myoumeng 在md里插入播放器后你们去看生成的html文件。直接复制那段代码到你想要的地方,改下歌单id就好了

对于像我这样不懂前端的人来说有一点难度,插入hexo的html的哪个地方也不清楚,希望能有个步骤教程
我在用MeingJS的方式引入播放器到hexo中
想实现https://aplayer.js.org/#/首页 左下角那个播放器的样子

你好,抱歉这么久才回复。
当前版本的 hexo-tag-aplayer 暂时只支持在文章页加载 aplayer.js
而目前在开发的 3.0 版本将支持非文章页的加载,
该版本将不日发布,届时如果碰到问题欢迎在这里报告

请问现在可以实现了吗

from hexo-tag-aplayer.

 avatar commented on June 5, 2024

@JadeVane @myoumeng 在md里插入播放器后你们去看生成的html文件。直接复制那段代码到你想要的地方,改下歌单id就好了

对于像我这样不懂前端的人来说有一点难度,插入hexo的html的哪个地方也不清楚,希望能有个步骤教程
我在用MeingJS的方式引入播放器到hexo中
想实现https://aplayer.js.org/#/首页 左下角那个播放器的样子

你好,抱歉这么久才回复。
当前版本的 hexo-tag-aplayer 暂时只支持在文章页加载 aplayer.js
而目前在开发的 3.0 版本将支持非文章页的加载,
该版本将不日发布,届时如果碰到问题欢迎在这里报告

请问现在可以实现了吗

早就可以了,把aplayer的代码插入到你主题的模板里就可以。
https://aplayer.js.org/#/首页 左下角那个播放器的样子是开启了吸底模式。

<div id="aplayer-hjnObCgk" class="aplayer aplayer-tag-marker meting-tag-marker" data-id="2382854733" data-server="netease" data-type="playlist" data-order="random" data-lrctype="false" data-listfolded="true" data-fixed="false" data-autoplay="false" data-volume="0.4" data-mutex="true" data-listmaxheight="200px" data-preload="none" data-theme="#00b9f1"></div>

data后面的就是属性,你参考文档自己改就是,这样弄的前提是博客安装了aplayer插件。播放器要全局的话就插入到主题模板的body最下面就是(如果是开启吸底模式)
主题模板的文件都搞不清那就先搞懂再折腾。

from hexo-tag-aplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.