hexo问题和使用

hexo问题和使用

在hexo中添加图片

hexo + typora 粘贴上传图片到指定目录 - 简书 (jianshu.com)

安装hexo-renderer-marked插件

  • 安装插件

    1
    cnpm install hexo-renderer-marked
  • 在source文件夹下创建images文件夹用来存放文件

img

  • 设置typora偏好设置,设置完成后,在typora中粘贴图片会在images文件夹中创建文件名相同的文件夹来存放文章图片

    img

  • 设置图片根目录

    “格式 –> 图像 –> 设置图片根目录”,将source目录设置为根目录