环境 mac os ,终端, 文件路径:桌面 Hexo文件夹.
git init
全局初始化sudo npm install -g hexo
可以执行下面命令:
sudo npm install --unsafe-perm --verbose -g hexo
然后,就可以
hexo version
成功看到版本号,安装成功!
hexo init blog
npm install
hexo clean
hexo g
hexo s
git clone https://github.com/iissnan/hexo-theme-next themes/next
修改 _config.yml 文件
theme: landscape 改成 theme: next
修改 themes\themes\next_config.yml
mathjax:
enable: true
当使用Latex处理数学公式的时候 会出现兼容问题例如 :h_\theta (x) 单个
创建成功后 可以使用 http://用户名.github.io 来访问。
git clone https://github.com/username/username.github.io
cd username.github.io echo "Hello World" > index.html
git add --all
git commit -m "Initial commit"
git push -u origin master
sudo npm install hexo-deployer-git --save
hexo clean
hexo g
hexo d
sudo chown -R 路径/Hexo/blog
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有