基于安知鱼的hexo魔改:侧边栏的小人

基于安知鱼的hexo魔改:侧边栏的小人

2023/11/06 fix:干扰其他的css,手动拖动后还能自己继续转动

灵感来源:code-gray
在[BlogRoot]/themes/anzhiyu/layout/includes/widget/card_announcement.pug 下添加如下部分代码。
若遇到重复代码,优先保留原代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.xpand(style='height:200px;')
canvas.illo(width='800' height='800' style='max-width: 200px; max-height: 200px; touch-action: none; width: 640px; height: 640px;')
script(src='https://npm.elemecdn.com/ethan4116-blog/lib/js/other/two-people/twopeople1.js')
script(src='https://npm.elemecdn.com/ethan4116-blog/lib/js/other/two-people/zdog.dist.js')
script#rendered-js(src='https://npm.wfqyys.cn/js/twoPeople.js')
style.
.card-widget.card-announcement {
margin: 0;
align-items: center;
justify-content: center;
text-align: center;
}
.xpand canvas {
display: block;
margin: 0 auto;
cursor: move;
}

ok ,结束,快hexo三连看看效果吧!