- 待补充
- 先
git remote add origin https://github.com/coulsonz/coulsonz.github.io.git
- 然后
git pull origin hexo
最新的hexo文件 - 执行
npm install
- 编辑、撰写文章或其他博客更新改动
- 依次执行
git add .
、git commit -m 'back up hexo files'
(引号内容可改)、git push
指令,保证 hexo 分支版本最新 - 最后,
hexo clean
(清理缓存有的需要,有的不需要) 发布新内容 - 执行
hexo d -g
指令
新文章常用技巧:
- 屏蔽MD解析文章中HTML或JS代码块的功能,使用
{% raw %}要屏蔽内容{% endraw %}
<!-- more -->
用于在主页隐藏文章内容,参考Hexo.raw
常用文件修改路径
-
目录菜单和中文翻译
-
_config.yml主题配置文件:\themes\next\ _config.yml
-
zh-Hans.yml汉化文件:\themes\next\languages
-