共有 3 篇文章
    
    
    📅  最近更新 
            
                
                
                
            
                
                
                
            
                
                
                
            
                
            
                
                
                
            
                
                
                
            
                
                
                
            
                
                
                
            
        
                
                    
                    
                    2019-03-04
                
                
                    
                    
                    - 2024-09-18
                
            
            
            
            1$ npm install hexo-math --save
在站点配置文件_config.yml中添加:
1math:
2  engine: 'mathjax' # or 'katex'
3  mathjax:
4    # src: custom_mathjax_source
5    config:
6      # MathJax config
在 next 主题配置文件中 themes/next-theme/_config.yml 中将 mathJax 设为 true:
                
                    
                    
                    2019-02-10
                
                
                    
                    
                    - 2024-09-18
                
            
            
            
            搭建Hexo并安装Next主题
本地
- 
安装Node js 
- 
安装Hexo命令行工具 
1npm install hexo-cli -g
- 生成一个本地的Hexo项目
1# 创建blog目录,并初始化hexo项目
2hexo init blog
3cd blog
4# 安装hexo依赖,hexo是基于nodejs开发的,npm是nodejs的包管理工具
5npm install
6# 启动本地服务,打开localhost:4000测试是否成功
7hexo server