Skip to content

Commit

Permalink
bump version to 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mythsman committed Apr 2, 2023
1 parent 516a72e commit 1d57b35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ douban:
builtin: false
item_per_page: 10
meta_max_line: 4
customize_layout: post
customize_layout: page
book:
path: books/index.html
title: 'This is my book title'
Expand Down Expand Up @@ -56,22 +56,15 @@ douban:
- **builtin**: 是否将`hexo douban`命令默认嵌入进`hexo g`、`hexo s`,使其自动执行`hexo douban` 命令。默认关闭。当你的豆瓣条目较多时,也建议关闭。
- **item_per_page**: 每页展示的条目数,默认 10 。
- **meta_max_line**: 每个条目展示的详细信息的最大行数,超过该行数则会以 "..." 省略,默认 4 。
- **customize_layout**: 自定义布局文件。默认值为 page 。无特别需要,留空即可。若配置为 `abcd`,则表示指定 `//theme/hexo-theme/layout/abcd.ejs` 文件渲染豆瓣页面。
- **path**: 生成页面后的路径,默认生成在 //yourblog/books/index.html 等下面。如需自定义路径,则可以修改这里。
- **title**: 该页面的标题。
- **quote**: 写在页面开头的一段话,支持html语法。
- **option**: 该页面额外的 Front-matter 配置,参考[Hexo 文档](https://hexo.io/docs/front-matter.html)。无特别需要,留空即可。
- **timeout**: 爬取数据的超时时间,默认是 10000ms ,如果在使用时发现报了超时的错(ETIMEOUT)可以把这个数据设置的大一点。
- **customize_layout**: 自定义布局文件。默认值为page,post,若//theme/hexo-theme/layout/page.ejs不存在则使用post.ejs
- **option**: 该页面额外的 Front-matter 配置,参考[Hexo 文档](https://hexo.io/docs/front-matter.html)。无特别需要,留空即可。

如果只想显示某一个页面(比如movie),那就把其他的配置项注释掉即可。

customize_layout参数适用于GitHub action等自动部署方式下不便于修改本插件渲染douban页面布局文件的情况。

参数使用示例:
~~~
customize_layout: douban # 指定//theme/hexo-theme/layout/douban.ejs文件渲染douban页面
~~~

## 使用

**展示帮助文档**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-douban",
"version": "2.2.0",
"version": "2.2.1",
"description": "Generate douban pages of books , movies and games for Hexo.",
"main": "index",
"scripts": {},
Expand Down

0 comments on commit 1d57b35

Please sign in to comment.