前言
修改位置themes/hugo-magic/layouts/partials/footer/components/script.html
,这是网站加载脚本的主要位置
效果:
正文
新春灯笼
<script src="https://api.vvhan.com/api/script/denglong"></script>
新春梅花
<script src="https://api.vvhan.com/api/script/meihua"></script>
新春雪花
<script src="https://api.vvhan.com/api/script/snow"></script>
新春樱花
<script src="https://api.vvhan.com/api/script/yinghua"></script>
转载自 https://www.kejiland.com/post/f38297a8.html
大佬的免费API接口
https://api.vvhan.com/
上传到自己的仓库
访问
https://api.vvhan.com/api/script/denglong
创建denglong.js
写入访问得到的内容
然后在其他地方使用raw或者jsd cdn
访问
例如
<script src="https://cdn.jsdelivr.net/gh/1143520/guajian@main/xinnian/denglong.js"></script>