Hexo 建立个人博客
比较重要的几条命令
1.本地测试
1 | hexo server |
2.部署到github上
1 | hexo deploy -g |
-g 表示部署在remote之前先生成静态文件
3.新建md文件
1 | hexo new "article_name" |
4.建tags,categories,about
1 | hexo new page tags |
5.怎么插入图片
首先将 _config.yml 中的post_asset_folder设为true
然后在根目录下执行1
npm install https://github.com/CodeFalling/hexo-asset-image --save
之后把图片放在和文章名字一样的文件夹下
使用时 
其中[]里面不写文字则图片没有标题
6.修改网站图标
将新图标放在/themes/next/source/images
修改next的主题配置文件: _config.yml
1 | favicon: |
参考资料
https://blog.csdn.net/linshuhe1/article/details/52424573
http://theme-next.iissnan.com/third-party-services.html#swfitype
(gitbash 复制粘贴快捷键:Ctrl+ins/Shift+ins)