Skip to content

Commit

Permalink
📃 docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Dec 19, 2022
1 parent 4e87618 commit f2a423d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/source/_data/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.trm-app-frame::before {
content : 'dev';
content : 'Dev';
position : absolute;
z-index : 55;
padding : 1rem 3rem 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion demo/source/_posts/katex.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: KaTeX
date: 2022-09-22 15:45:29
categories: 测试分类
categories: 测试分类2
katex: true
toc: false
---
Expand Down
24 changes: 24 additions & 0 deletions docs/.vitepress/assets/log.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@
{
"large_version": "v1.2.x",
"children": [
{
"version": "1.2.8",
"date": "2022-12-19",
"logs": [
{
"type": "feat",
"text": "支持首页自定义分类"
},
{
"type": "feat",
"text": "支持文章可设置原文链接"
}
]
},
{
"version": "1.2.7",
"date": "2022-12-14",
"logs": [
{
"type": "fix",
"text": "修复 typedText 无法被覆盖"
}
]
},
{
"version": "1.2.6",
"date": "2022-12-09",
Expand Down
21 changes: 21 additions & 0 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,27 @@ cover:
type: img
```

## 卡片 Card

这里是一些关于页面中卡片配置合集。

### 分类卡片

首页中显示的分类卡片。

默认情况下,会显示分类里文章最多的两个,您可以通过修改配置来替换默认行为。

- `enable`: 是否开启
- `len`: 需要显示分类数量,默认为 2 个
- `list`: 如果你需要固定显示分类,可以通过这个字段配置

``` yaml
categorie_card:
enable: true
len: 2
list: ['分类1','分类2']
```

## 日期格式化 Date Format
用于配置主题中使用日期的格式。

Expand Down
2 changes: 2 additions & 0 deletions docs/guide/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- `toc`:是否显示目录,仅当值为 false 生效。默认通过 `_config.async.yaml``is_toc` 控制。
- `single_column`:单栏显示详情页,为 true 时生效。
- `author`:文章作者
- `originalLink`:文章源链接(用于转载)


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

Expand Down

0 comments on commit f2a423d

Please sign in to comment.