All gists

LiuShen
Last active 2 months ago artalk javascript lsky picbed

hexo-theme-butterfly中,artalk实现前端上传图片,不使用upgit(不会QAQ,如果有谁会请联系我呜呜呜)

1 0 1
1 // 请使用该文件替换“[root]\themes\butterfly\layout\includes\third-party\comments\artalk.pug”
2 - const { server, site, option } = theme.artalk
3 - const { use, lazyload } = theme.comments
4
5 script.
6 (() => {
7 let artalkItem = null
8 const option = !{JSON.stringify(option)}
9 const isShuoshuo = GLOBAL_CONFIG_SITE.pageType === 'shuoshuo'
LiuShen
Last active 2 months ago

Twikoo模板html文件

0 0 2
1 <div>
2 <div id="content" style="margin-top: 20px;margin-bottom: 20px">
3 <div style="background: #ddefff;width: 95%;max-width: 800px;margin: auto auto;border-radius: 12px;border: #49b1f5 1px solid;overflow: hidden;-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4);box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4); ">
4 <header style="overflow: hidden"><img src="https://i.p-i.vip/30/20240818-66c19b7c531ed.jpg" style="width: 100%; z-index: 666"></header>
5 <div style="padding: 5px 20px">
6 <div class="dear" style="border-radius: 30px;position: relative;color: white;float: left;z-index: 999;background: #347aa9;padding: 5px 30px;margin: -20px auto 0;box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);">亲爱的清羽飞扬站长:</div><br>
7 <center>
8 <h3>你的博客收到了来自${NICK}的评论!</h3>
9 </center>
10 <hr style="width:200px;border:0;border-bottom:1px solid #e5e5e5;margin:12px auto;"><br>&nbsp;&nbsp;<p style="font-weight: bold;">&nbsp;评论者信息:&nbsp;</p>