Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Installation
bash
1 | # Install node.js (https://nodejs.org/en/download/) |
Create a new post
bash
1 | hexo new "My New Post" |
More info: Writing
Generate static files
bash
1 | hexo generate |
More info: Generating
Run server
bash
1 | # Since hexo-server is a seperated plugin now, so we need to install hexo-server manually |
More info: Server
Deploy to remote sites
bash
1 | hexo deploy |
Add pin-top support
bash
1 | # replace `hexo-generator-index` with `hexo-generator-index-pin-top` |
Then add top
attribute to the article you want to pin-top, e.g.,
markdown
1 | --- |
The larger the value of
top
is, the top the article is.
Add music player meting
support
When you use MetingJS, your blog can play musics from Tencent, Netease, Xiami, Kugou, Baidu and more. More details here.
If you want to use MetingJS in hexo-tag-aplayer, you need to enable it in _config.yml
:
yml
1 | aplayer: |
Now you can use meting
in your post:
markdown
1 |
|
The options are shown below:
Option | Default | Description |
---|---|---|
id | required | song id / playlist id / album id / search keyword |
server | required | Music platform: netease , tencent , kugou , xiami , baidu |
type | required | song , playlist , album , search , artist |
fixed | false |
Enable fixed mode |
mini | false |
Enable mini mode |
loop | all |
Player loop play, values: ‘all’, ‘one’, ‘none’ |
order | list |
Player play order, values: ‘list’, ‘random’ |
volume | 0.7 | Default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
lrctype | 0 | Lyric type |
listfolded | false |
Indicate whether list should folded at first |
autoplay | false |
Autoplay song(s), not supported by mobile browsers |
mutex | true |
Pause other players when this player playing |
listmaxheight | 340px |
Max height of play list |
preload | auto |
The way to load music, can be none , metadata , auto |
storagename | metingjs |
LocalStorage key that store player setting |
theme | #ad7a86 |
Theme color |
More info: Deployment