Skip to content

Commit

Permalink
📃 docs: 文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Sep 13, 2022
1 parent f8b31ba commit e646d15
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
25 changes: 21 additions & 4 deletions docs/.vitepress/assets/log.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
{
"large_version": "v1.1.x",
"children": [
{
"version": "1.1.4",
"logs": [
{
"type": "feat",
"text": "支持文章详情页单栏预览(展示空间更大)"
},
{
"type": "feat",
"text": "添加项目列表模板"
},
{
"type": "style",
"text": "增强文章详情中链接显示"
},
{
"type": "refactor",
"text": "拆分友链信息配置(详情见 页面配置-友链 文档吧🤣)"
}
]
},
{
"version": "1.1.3",
"logs": [
Expand Down Expand Up @@ -64,10 +85,6 @@
"type": "feat",
"text": "添加对 KaTex 支持"
},
{
"type": "refactor",
"text": "优化配置项(详情见文档吧🤣)"
},
{
"type": "perf",
"text": "剥离对 Jquery 依赖"
Expand Down
22 changes: 22 additions & 0 deletions docs/guide/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- `sticky`:首页排序值
- `banner`:文章页横幅背景,字段参考 [横幅 banner.default](/guide/config.html#横幅-banner) 字段。
- `toc`:是否显示目录,仅当值为 false 生效。默认通过 `_config.async.yaml``is_toc` 控制。
- `single_column`:单栏显示详情页,为 true 时生效。

内置的置顶脚本已删除,将 `hexo-generator-index` 升级到 `2.0.0+` 以上版本即可。

Expand Down Expand Up @@ -66,6 +67,27 @@ links:
desc: 醒,亦在人间;梦,亦在人间
```
如果您的友链比较多,可能会导致 `_config.async.yml` 过长,您可以将 links 配置拆分出来。在 Hexo 工作目录下新建 `source/_data/links.yml` 文件,字段和 `_config.async.yml` 中的一致,只是不再需要 `links` 字段。

``` yaml
- name: 白云苍狗
url: //www.imalun.com/
image: //www.imalun.com/images/avatar.jpg
desc: 醒,亦在人间;梦,亦在人间
```

也可以是 `source/_data/links.json` 文件

``` json
[
{
"name": "白云苍狗",
"url": "//www.imalun.com/",
"image": "//www.imalun.com/images/avatar.jpg",
"desc": "醒,亦在人间;梦,亦在人间"
}
]
```
## 关于 About
新建关于页面。

Expand Down

0 comments on commit e646d15

Please sign in to comment.