效果图

参考教程

1,安装插件

1
npm install hexo-douban --save

2,配置

将下面的配置写入站点的配置文件 _config.yml 里(不是主题的配置文件).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
douban:
id: 162448367
builtin: false
dynamic: false
item_per_page: 10
meta_max_line: 4
customize_layout: page
swup: false
book:
path: books/index.html
title: "This is my book title"
quote: "This is my book quote"
actions:
- do
- wish
- collect
option:
movie:
path: movies/index.html
title: "This is my movie title"
quote: "This is my movie quote"
actions:
- do
- wish
- collect
option:
game:
path: games/index.html
title: "This is my game title"
quote: "This is my game quote"
actions:
- do
- wish
- collect
option:
song:
path: songs/index.html
title: "This is my song title"
quote: "This is my song quote"
actions:
- do
- wish
- collect
option:

camelz的配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#movie页的豆瓣插件https://github.com/mythsman/hexo-douban
douban:
id: 281689793
builtin: true
dynamic: true
item_per_page: 10
meta_max_line: 4
customize_layout: page
swup: false
movie:
path: movies/index.html
title: "豆瓣影视"
quote: "我的豆瓣"
actions:
- wish
- do
- collect
option:

3,看效果

1
hexo cl && hexo g && hexo s