Hexo memo

Posted by ExiaHuang on January 1, 2018

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

FQA

How to add a favicon

?

How to save image

xcopy

About Math

version:

1
"hexo-math": "^2.0.1",

install:

1
npm install hexo-math --save

config:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
math:
  engine: 'mathjax' # or 'katex'
  mathjax:
    src: # "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
    config:
      # MathJax config
  katex:
    css: #custom_css_source
    js: #custom_js_source # not used
    config:
      # KaTeX config
     
Plugins:
  - hexo-math

set your post:

mathjax: true

How to Deploy

1
npm install hexo-deployer-git --save

GitHubPage

1538146491315

About Images Path

1
2
url: http://salesforcexytools.com/maths
root: /maths/

Add share Baidu Share Button

http://share.baidu.com/code

Mathjax

1
2
3
4
 1. 上标和下标 $a_{1}$ $x^{2}$ $y^{a_{1}}$
 2. 开方 $\sqrt{x}$ $\sqrt[5]{x+1}$
 3. 分数使用 $1\frac{1}{2}$ $\frac{1}{a^{5} + 1}$
 4. 积分 $\sum_{i=1}^{n}$