Hexo 使用手册

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
2
3
4
5
6
7
8
$ hexo generate
```
More info: [Generating](https://hexo.io/docs/generating.html)
**Deploy to remote sites**
``` bash
$ hexo deploy

More info: Deployment

生成索引
需要集成algolia搜索

1
2
export HEXO_ALGOLIA_INDEXING_KEY=你的Search-Only API key
hexo algolia

修改头像

在theme下的_config.yml

1
2
3
4
# Sidebar Avatar
# in theme directory(source/images): /images/avatar.jpg
# in site directory(source/uploads): /uploads/avatar.jpg
avatar: /images/avatar.png

修改网站标题和作者

在根目录下的_config.yml

1
2
3
4
5
6
7
# Site
title: 有寻有伺
subtitle:
description: 为天地立心,为生民立民,为往圣继绝学,为万世开太平。
author: 有寻有伺
language: zh-Hans
timezone:
坚持原创技术分享,您的支持将鼓励我继续创作!