> For the complete documentation index, see [llms.txt](https://lh1me.gitbook.io/aomori/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lh1me.gitbook.io/aomori/cn/features/article.md).

# 文章

{% hint style="info" %}
需要配置在 **文章 Front-matter**
{% endhint %}

### 封面图片 <a href="#feng-mian-tu-pian" id="feng-mian-tu-pian"></a>

使用 `相对路径`，参照 [资源文件夹](https://hexo.io/zh-cn/docs/asset-folders)

```yaml
cover: xxx.jpg
```

### 封面视频

使用 `完整链接`，便于使用 CDN

每篇文章只能有一个封面视频，并且封面图片和封面视频只能同时存在其中一个

```yaml
video:
  src: src # 完整视频链接
  poster: poster # 完整视频封面图链接
```

### 文字头部图片

可配多张，使用 `相对路径` ，参照 [资源文件夹](https://hexo.io/zh-cn/docs/asset-folders)

```yaml
photos:
- xxx.jpg
- xxx.jpg
```

### 转载链接

可配多条

`url` 跳转链接 / `title` 显示标题

```yaml
link_reprint:
  -
    url: url
    title: title
  -
    url: url
    title: title
```

### 参考链接

可配多条

`url` 跳转链接 / `title` 显示标题

```yaml
link_refer:
  -
    url: url
    title: title
  -
    url: url
    title: title
```

### 置顶

在 Hexo 目录下安装依赖

```css
npm i hexo-generator-index -S
```

在文章 Front-matter 增加选项

```makefile
sticky: 100
```

更多使用方法 [点击查看](https://github.com/hexojs/hexo-generator-index)

### 视频

我们对文章内容里面的视频做了优化处理，你只需要在写文章的时候直接使用 HTML 的 Video 标签 `<video src="xxx"/>` 即可。
