page的Front-matter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
title:
date:
update:
type:
comments:
description:
keywords:
top_img:
mathjax:
katex:
aside:
aplayer:
highlight_shrink:
---
是否必需 功能
title 必需 页面标题
date 必需 页面创建日期
update 必需 页面更新日期
type 可选 标签、分类和友情链接三个页面需要配置
comments 可选 显示页面评论模块(默认true)
description 可选 页面描述
keywords 可选 页面关键字
top_img 可选 页面顶部图片
mathjax 可选 显示mathjax(当设置mathjax的pre_page: false时,才需要配置,默认false)
katex 可选 显示katex(当设置katex的per_page: false时,才需要配置,默认false)
aside 可选 显示侧边栏(默认true)
aplayer 可选 在需要的页面加载aplayer的js和css
highlight_shrink 可选 配置代码框是否展开(true/false)(默认设置中highlight_shrink的配置)

post的front-matter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title:
date:
updated:
tags:
categories:
keywords:
description:
top_img:
comments:
cover:
toc:
toc_number:
auto_open:
copyright:
mathjax:
katex:
aplayer:
highlight_shrink:
---
是否必需 功能
title 必需 文章标题
date 必需 文章创建日期
updated 可选 文章更新日期
tags 可选 文章标签
categories 可选 文章分类
keywords 可选 文章关键字
description 可选 文章描述
top_img 可选 文章顶部图片
cover 可选 文章缩略图(如果没有设置top_img,文章页顶部将显示缩略图,可设为false/图片地址/留空)
comments 可选 显示文章评论模块(默认 true)
toc 可选 显示文章TOC(默认为设置中toc的enable配置)
toc_number 可选 显示toc_number(默认为设置中toc的number配置)
auto_open 可选 是否自动打开TOC(默认为设置中toc的auto_open配置)
copyright 必需 显示文章版权模块(默认为设置中post_copyright的enable配置)
mathjax 可选 显示mathjax(当设置mathjax的per_page: false时,才需要配置,默认 false)
katex 可选 显示katex(当设置katex的per_page: false时,才需要配置,默认 false)
aplayer 可选 在需要的页面加载aplayer的js和css
highlight_shrink 可选 配置代码框是否展开(true/false)(默认为设置中highlight_shrink的配置)