0%

测试有效的在Hexo中插入图片的方法:
1)采用插件的(以hexo-image-link插件为例)
参考
如果安装了 hexo-asset-img 插件,需要将其卸载;使用 hexo-image-link。
采用如下代码:

1
![miss Bing](bubu/bubu.jpg)

2)Hexo的asset方法
通过常规的 markdown 语法和相对路径来引用图片和其它资源可能会导致它们在存档页或者主页上显示不正确。在Hexo 2时代,社区创建了很多插件来解决这个问题。但是,随着Hexo 3 的发布,许多新的标签插件被加入到了核心代码中。这使得你可以更简单地在文章中引用你的资源。

参考

参考

嵌入图片

采用如下代码:

1
2
{% asset_img bubu.jpg  miss Bing %}
<img src="bubu.jpg" title="miss Bing" alt="wuwu">

关于github pages不更新的原因

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment