Ikeq ChengIkeq Cheng

The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts.

Inside 主题配置 - Front-Matter

Feb 1, 2019

Hexo 默认

1
2
3
4
5
6
7
8
title:
date:
updated:
comments:
tags:
categories:
layout:
permalink:

详见 hexo.io/docs/front-matter

主题扩展

同时适用于 page 和 post

1
2
3
4
5
6
7
8
9
# 当前文章是否显示目录导航,用于覆盖全局设置
toc: false
# 当前文章是否显示打赏,用于覆盖全局设置
reward: false
# 当前文章是否显示版权声明信息,用于覆盖全局设置
# 支持设置为对象,同 /theme-inside/docs/content-addons#copyright。
copyright: false
# 文章是否被索引,设置为 `false` 时,不会出现在文章列表和 sitemap.xml
visible: false

适用于 post

1
2
3
4
5
6
7
8
9
10
11
# 设置缩略图
thumbnail: landscape.jpg
# 设置缩略图底色
color: '#111'

# 可联合设置,如:
thumbnail: 'landscape.jpg #111'

# post 列表置顶
# 优先按 sticky 值排序(缺省值为 0),其次按 date
sticky: 1

适用于 page

1
2
# 在 page 标题下方显示信息,目前只会显示 date。
meta: true

See also

Buy me a cup of milk 🥛.