Github + jsDelivr提高博客加载速度
教程
1.在Github中创建一个新的仓库,名字随意
2.在本地创建一个新建文件夹,在文件夹内右键-git bash here,输入指令git init
3.复制下刚才Github新建仓库的地址
4.输入 git remote add origin 加上 你刚刚复制的路径,
输入 git pull origin master 命令,将仓库pull到文件夹
5.将要上传的文件放入文件夹
6.输入 git add .
git commit -m ‘添加文件内容描述’
git push origin master
7.使用 https://cdn.jsdelivr.net/gh/用户/库@master/文件路径 进行访问
比如我上传的图片 https://cdn.jsdelivr.net/gh/0xdf1001f/cdn@master/bg.jpg