基于hexo-theme-starter主题制作,其中文译名为氢博客,致力于制作轻量、简介的博客。
如果你已经有成型的hexo框架的话可以不需要初始化
hexo initgit clone https://github.com/CoderFrish/hexo-theme-hydrogen.git themes/hydrogen
在文件_config.yml下,找到theme项,将其修改成以下:
theme: hydrogen可以用npm来安装
npm install hexo-theme-hydrogen剩下同理
hexo默认的hexo-renderer-mark是不支持数学公式的,所以我们需要修改package.json
"dependencies": {
- "hexo-renderer-marked": "^7.0.0",
+ "hexo-renderer-markdown-it": "^7.1.1",
+ "katex": "^0.16.27",
+ "@renbaoshuo/markdown-it-katex": "^2.0.2"
}同时添加以下
markdown:
plugins:
- name: '@renbaoshuo/markdown-it-katex'
options:
skipDelimitersCheck: true