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

Clean local env

1
$ hexo clean

This command will delete all the public folder.

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

Unmatching version

1
$ npm rebuild node-sass

Tips

First paragragh

Give a brief statement for the following blog. The best choice is to write maybe 2 or 3 sentence without \n.
Because at the home page, it will show those sentences.

Cetagories

Don’t use two or more cetagories to one blog, although this theme support us to do this.

Tags

Don’t let space in Tags. You can use - or _.

Local git

Clone

1
git clone https://github.com/quanzw99/Hexo-Resource Hexo-Test

It is a private repository.

Config

Load dependency

1
npm install

solving the problem regarding sass: https://sobaigu.com/hexo-renderer-sass-error.html

1
2
npm uninstall hexo-renderer-sass
npm i --save hexo-renderer-sass-next

Use MathJax

1、Open the dir /node_modules/hexo-renderer-mathjax/mathjax.html and change the cnd.

1
<script src="//cdn.bootcss.com/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML"></script>

2、Open the dir /node_modules/kramed/lib/rules/inline.js and Change some rules:
1
2
3
4
5
\\ escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/, =>
escape: /^\\([`*\[\]()# +\-.!_>])/,

\\ em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, =>
em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,

Reference:

3、Add mathjax: true in Front-Matter, Like:

1
2
3
4
---
title: Title
mathjax: true
---

Update

Please remember commit and push to git and deploy using hexo.

Todo

Check Mathjax

There is a config to set in _config.json. Do I need config those above?

Check docs

According to this Tutorial, to check if there is any mistakes.

Submodules

尝试利用子模块的方式同步主题的升级

Reference