198 字
1 分钟

在hexo中插入图片

2022-10-20

Markdown方法#

hexo文档链接

没有使用hexo的tag,直接用markdown的语法

修改typora偏好设置#

在typora的偏好设置中,设置图片插入路径

修改_config.yml#

在_config.yml文件中设置post_asset_folder: true

复制或保存图片#

将图片复制到typora里就可以正常显示在博客上了

如果是保存的图片要存到markdown文件的文件名对应的同级文件夹下,然后在markdown文件里写插入图片的语法,比如在在hexo中插入图片.md中插入在hexo中插入图片文件夹下的图片:

![test](在hexo中插入图片/test_image.png)

也可以写html代码来显示图片:

<div>
<img src="在hexo中插入图片/test.png" alt="post" style="width: 50%">
</div>
在hexo中插入图片
https://lonelyinnovator.github.io/posts/insert-images-to-hexo-blog/
作者
Firefly
发布于
2022-10-20
许可协议
CC BY-NC-SA 4.0
最后更新于 2022-10-20,距今已过 1103 天

部分内容可能已过时

目录

封面
Loading ...
Loading ...
0:00 / 0:00