Skip to content

Myer921/hexo-tag-aplayer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-aplayer

Embed APlayer(https://github.com/DIYgod/APlayer) in Hexo posts/pages.

plugin screenshot

Installation

npm install --save hexo-tag-aplayer

Usage

no lrc
{% aplayer title author url [picture_url, narrow, autoplay] %}
yes lrc
{% aplayerlrc "title" "author" "url" "autoplay" %}
[00:00.00]lrc here
{% endaplayerlrc %}

Hexo has an issue that cannot use space within tag arguments.

If you encounter this problem, install the latest (beta) version, and wrap the arguments within a string literal, for example: no lrc {% aplayer "Caffeine" "Jeff Williams" "caffeine.mp3" "autoplay" %} yes lrc {% aplayerlrc "Caffeine" "Jeff Williams" "caffeine.mp3" "autoplay" %} [00:00.00]lrc here {% endaplayerlrc %}

Customization

You can modify variables scriptDir(default: "/assets/js/" ) and styleDir(default: "/assets/css/") in index.js according to your blog's directory structure.

Todo

  • More options(e.g. autoplay, narrow)
  • Display lyrics
  • Fix issue cannot use space within arguments
  • Publish it to the hexo plugin list and npm

LICENSE

MIT

About

Embed aplayer in Hexo posts/pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%