#container.show {
background: linear-gradient(200deg,#a0cfe4,#e8c37e);
}
var yiliaConfig = {
mathjax: false,
isHome: true,
isPost: false,
isArchive: false,
isTag: false,
isCategory: false,
open_in_new: false,
toc_hide_index: true,
root: "/yiliablog/",
innerArchive: true,
showTags: true
}
/* 标签页标题切换 */
var originTitle = document.title;
var titleTime;
document.addEventListener("visibilitychange", function () {
if (document.hidden) {
document.title = "(つェ⊂)" + originTitle;
clearTimeout(titleTime);
} else {
document.title = "(*´∇`*)" + originTitle;
titleTime = setTimeout(function () {
document.title = originTitle;
}, 2000);
}
});
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true
咸鱼
var hoverEffect = {
"subNav": ".left-col .social a"
}
for (var x in hoverEffect) {
// 初始化data-img属性值
let $em = document.querySelectorAll(hoverEffect[x]);
$em.forEach(($a) => {
//console.log($a.href);
if (isImageType($a.href)) {
$a.setAttribute("data-img", $a.href)
}
})
// 实现悬停元素预览图片效果
let $a = document.querySelectorAll(hoverEffect[x] + "[data-img]");
$a.forEach(($em) => {
new HoverImgFx1($em)
})
}
POWERMODE.colorful = true; // make power mode colorful
POWERMODE.shake = false; // turn off shake
document.body.addEventListener('input', POWERMODE);
/**
* 完整配置请参考:https://l2dwidget.js.org/docs/class/src/index.js~L2Dwidget.html#instance-method-init
*/
var pluginModelPath = "assets/", // 模型的文件路径,无需更改
pluginRootPath = "/yiliablog/live2d_models/"; // 插件的路径,无需更改
//特定的模型json文件名称
var modelPathJson = {
"epsilon2_1": "Epsilon2.1",
"gf": "Gantzert_Felixander",
"haru/01": "haru01",
"haru/02": "haru02",
"nietzsche": "nietzche"
}
var modelName = "koharu";
var modelJsonPath = "";
if (modelPathJson[modelName]) {
modelJsonPath = pluginRootPath + modelName + "/" + pluginModelPath + modelPathJson[modelName] +
".model.json";
} else {
modelJsonPath = pluginRootPath + modelName + "/" + pluginModelPath + modelName + ".model.json";
}
L2Dwidget.init({
model: {
jsonPath: modelJsonPath
},
display: {
position: "right",
width: 150,
height: 300,
},
mobile: {
show: false,
scale: 0.6
},
react: {
opacity: 1
}
})
snow.down();
$(window).resize(function() {
$("canvas").css("z-index","500").remove();
snow.down();
});
一键复制
编辑
Web IDE
原始数据
按行查看
历史