当前魔改基于 hexo 6.3.0 和 hexo-theme-butterfly 4.7.0
patch-package 配置
patch-package 可以将你的魔改记录保存到 patches
文件夹下,方便下次更新主题后应用魔改。按照下面的代码修改 package.json 即可:
1 2 3 4 5
| { "scripts": { + "postinstall": "npx patch-package" } }
|
如果你想直接应用我的魔改,可以直接复制本文的代码到 patches/hexo-theme-butterfly+4.7.0.patch
两个小人
1 2 3 4 5 6 7 8 9
|
@@ -4,3 +4,4 @@ if theme.aside.card_announcement.enable i.fas.fa-bullhorn.fa-shake span= _p('aside.card_announcement') .announcement_content!= theme.aside.card_announcement.content + .twopeople!= '<div class="twopeople"><div class="container" style="height:200px;"><canvas class="illo" width="800" height="800" style="max-width: 200px; max-height: 200px; touch-action: none; width: 640px; height: 640px;"></canvas></div><script src="https://cdn.jsdelivr.net/gh/Justlovesmile/CDN/js/twopeople1.js"></script><script src="https://cdn.jsdelivr.net/gh/Justlovesmile/CDN/js/zdog.dist.js"></script><script id="rendered-js" src="https://cdn.jsdelivr.net/gh/Justlovesmile/CDN/js/twopeople.js"></script><style>.twopeople{margin: 0;align-items: center;justify-content: center;text-align: center;}canvas {display: block;margin: 0 auto;cursor: move;}</style></div>'
|
鸣谢 https://guole.fun/posts/butterfly-custom/
站点 Logo 圆角
1 2 3 4 5 6 7 8 9 10 11 12
|
@@ -289,6 +289,7 @@ margin-right: 6px height: 36px vertical-align: middle + border-radius: 50%
#toggle-menu display: none
|