Hexo中插入图片和音乐的几种方式
本文提供三种在hexo中插入图片的方式和两种插入音乐的方式。
插入图片
方案一
1 |  |
1 |  |

方案二
1 | <img src='url或图片路径' height=400px'> |

1 | <img src='https://suncos-01-1254144885.cos.ap-shanghai.myqcloud.com/Hexo/S.png' height=400px > |
方案三
1 | {% asset_img 1.jpg 这是一个新的博客的图片的说明 %} |
1 | post_asset_folder: true |
1 | {% asset_img S.png 方案三 %} |
插入音乐
方案一
1 | <audio autoplay> |

1 | <audio controls> |
缺点:对音乐格式有要求,目前audio 元素支持的3种文件格式:MP3、Wav、Ogg
方案二

点击音乐下方的“生成外链播放器”,然后进入外链生成界面,复制最下方的HTML代码,拷贝到自己想放的地方即可。这里边框的大小可以自由调节。

1 | <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=26090155&auto=0&height=66"></iframe> |
缺点:很多音乐有版权保护,无法生成外链
Hexo中插入图片和音乐的几种方式
https://time-frame.cloud/2019/11/23/2019-11-23-Hexo中插入图片和音乐的几种方式/