butterfly 主题网站切换时更换标题
新建文件\source\js\title.js,写入以下内容(注意更改成自己的文本): 1234567891011121314151617//动态标题var OriginTitile = document.title;var titleTime;document.addEventListener("visibilitychange", function () { if (document.hidden) { //离开当前页面时标签显示内容 document.title = "切换至其他网站时的标题"; clearTimeout(titleTime); } else { //返回当前页面时标签显示内容 document.title = "返回博客时的标题"; //两秒后变回正常标题 titleTime = setTimeout(function () { document.title =...
butterfly主题添加看板娘
安装1.在 hexo 根目录 blog 中打开终端,输入以下代码安装插件: 1npm install --save hexo-helper-live2d 2.打开_config.yml,将以下代码粘贴于最底部: 123456789101112131415161718192021222324# Live2D## https://github.com/EYHN/hexo-helper-live2dlive2d: enable: true #开关插件版看板娘 scriptFrom: local # 默认 pluginRootPath: live2dw/ # 插件在站点上的根目录(相对路径) pluginJsPath: lib/ # 脚本文件相对与插件根目录路径 pluginModelPath: assets/ # 模型文件相对与插件根目录路径 # scriptFrom: jsdelivr # jsdelivr CDN # scriptFrom: unpkg # unpkg CDN # scriptFrom:...