Skip to content

CoderFrish/hexo-theme-hydrogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-theme-hydrogen

基于hexo-theme-starter主题制作,其中文译名为氢博客,致力于制作轻量、简介的博客。

1 | 如何下载

1.1 | 初始化Hexo(可选)

如果你已经有成型的hexo框架的话可以不需要初始化

hexo init

1.2 | 下载主题

git clone https://github.com/CoderFrish/hexo-theme-hydrogen.git themes/hydrogen

1.3 | 设置主题

在文件_config.yml下,找到theme项,将其修改成以下:

theme: hydrogen

1.4 | 更多方法

可以用npm来安装

npm install hexo-theme-hydrogen

剩下同理

2 | 使用数学公式

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors