2021-07-21
Post Hexo Blog with Images and PDF Files
一、插入图片的方法
绝对引用
将带插入的图片放在/source/images目录内,使用Markdown语法实现图片的显示。其中[image]为图片的标题,选填。
[注]有资料说明需要安装hexo-asset-image插件,安装命令为npm install hexo-asset-image --save,笔者未实际操作,烦请读者自行动手验证。
相对引用
将根目录下_config.yml文件中post_asset_folder设置为true:
1post_asset_folder: true
修改根目录下_config.yml文件中permalink的配置:
1234567# permalink: :year/:month/:day/:title/ #方式一# permalink: posts/:abbrlink/:title/ #方式二# permalink: post/:abbrlink.html #方式三permalink: post/:abbrlink/ # 方式四abbrlink: alg: crc32 # 算 ...