Hexo使用心得

新建文章

hexo new "Hexo使用心得"

上传图片到github并使用

  1. _config.yml中有的post_asset_folder设置为true
  2. hexo的目录下执行npm install https://github.com/CodeFalling/hexo-asset-image --save
  3. 完成安装后用hexo新建文章的时候会发现_posts目录下面会多出一个和文章名字一样的文件夹
  4. 使用![test](Hexo使用心得/test.jpg)就可以插入图片。其中[]里面不写文字则没有图片标题

Hexo-admin

本地的文章编辑器,不支持在线/admin访问,github.io都是静态界面

更新文章

hexo d -g

posted @ 2018-11-28 02:27  冯天祥  阅读(87)  评论(0编辑  收藏  举报