Todo for myself
Install node.js
Install hexo
1
npm install -g hexo
Download latest version in my Gituhb
1
git clone https://github.com/yantijin/yantijin.github.io.git
Download latest themes configuration in another foler
1
git clone https://github.com/yantijin/Theme_Next.git
Then copy the theme into github.yantijin.io/themes
Install dependencies for your blog
1
npm install
Something needs to modifiy
About MATHJAX
1
2npm uninstall hexo-readerer-marked --save
npm install hexo-renderer-kramed --saveNext step is to modify the files in node_modules/kramed/lib/rules/inlime.js.
Change line 10 and line 20:
1
2
3
4// escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/,
escape: /^\\([`*\[\]()#$+\-.!_>])/,
// em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,