Front-matter配置规则
Front-matter
是 markdown
文件最上方以 — 分隔的区域,用于指定个别档案的变数。
Page Front-matter
用于 页面
配置
Post Front-matter
用于 文章页
配置
Page Front-matter
1 2 3 4 5 6 7 8 9
| --- title: date: updated: comments: description: keywords: aside: ---
|
写法 |
解释 |
title |
【必需】页面标题 |
date |
【必需】页面创建日期 |
updated |
【可选】页面更新日期 |
description |
【可选】页面描述 |
keywords |
【可选】页面关键字 |
aside |
【可选】显示侧边栏 (默认 true) |
Post Front-matter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| --- title: date: updated: tags: categories: keywords: description: top_img: copyright: copyright_author: copyright_author_href: copyright_url: copyright_info: noticeOutdate: sticky: abbrlink: ---
|
写法 |
解释 |
title |
【必需】文章标题 |
date |
【必需】文章创建日期 |
updated |
【可选】文章更新日期 |
tags |
【可选】文章标签 |
categories |
【可选】文章分类 |
keywords |
【可选】文章关键字 |
description |
【可选】文章描述 |
top_img |
【可选】文章顶部图片 |
copyright |
【可选】显示文章版权模块(默认为设置中 post_copyright 的 enable 配置) |
copyright_author |
【可选】文章版权模块的文章作者 |
copyright_author_href |
【可选】文章版权模块的文章作者链接 |
copyright_url |
【可选】文章版权模块的文章连结链接 |
copyright_info |
【可选】文章版权模块的版权声明文字 |
aside |
【可选】显示侧边栏 (默认 true) |
noticeOutdate |
【可选】文章过期提醒 (默认为设置中 noticeOutdate 的 enable 配置) |
sticky |
【可选】文章排序优先级 |
abbrlink |
【自动生成】文章短链接 |