yilia 的html模板,index.html

Fan-blog

#container.show {

background: linear-gradient(200deg,#a0cfe4,#e8c37e);

}

head.jpg

Fan

所有文章

友链

关于我

music

本站总访问量

本站访客数

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);

}

});

  • 所有文章
  • 友链
  • 关于我

tag:

缺失模块。
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

  • Gitee

  • GitHub

一只
咸鱼

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

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值