在Front-matter找到或者新增meta,需要隐藏哪个meta标签将其置为false。例如:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
title: 隐藏meta信息
categories: 教程
tags: hide
meta:
date: false
categories: false
counter: false
updated: false
share: false
tags: false
valine:
path: /top/
---

这只会在page页面内生效而不会在列表中生效。

如果使用<!-- more -->来实现摘要,则<!-- more -->前后一定要有空行,不然可能导致显示错位。

1
2
3
4
5
这是摘要

<!-- more -->

这是正文

多语言

 教程

在主目录找到或者新增language,例如:

1
2
3
4
5
language:
- zh-CN
- en
- zh-HK
- zh-TW

博客将按照给定的优先级显示语言。

写法示例:

1
2
3
4
5
6
---
title: 共用一个评论框
valine:
path: /top/
placeholder: 你觉得共用一个评论框有意义吗?
---

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

文章专属BGM

 教程
1
2
3
4
5
6
7
---
title: 文章专属BGM
date: 2018-12-30
music:
type: song # song (单曲) album (专辑) playlist (歌单) search (搜索)
id: 746319661 # 歌曲/专辑/歌单 ID
---

Images

This is a image test post.

Caption

2013-12-25

This post doesn’t have a title. Make sure it’s accessible.