之前在考研,一直没时间更新博客。考完之后又一直懒得写,最近才开始恢复更新。这段时间博客网址换回了以前的www.meancoder.xyz,评论也换成了Twikoo。
更换域名
最开始的 xyz
域名只买了一年,当时活动只要一块钱。可惜以前不知道域名有什么用,那时候十年才一百多,没活动的话续费又很贵。后来又买了一年的
top 域名,但是还是比较喜欢 xyz 域名,所以等赎回期过后买了 5
年,以后等有活动再多续几年。
更换评论系统
之前博客用的评论系统是Valine,但是存在一些安全隐患,而且
LeanCloud 会自动休眠(虽然我的博客也没人看)。所以评论系统换成了Twikoo,后端用腾讯云开发部署,前端
NexT 主题直接使用hexo-next-twikoo插件。
最后附上自定义的邮件通知模板。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
   | <div class="extend header" style="background: #1e1f27; padding: 40px 20px;">   <div     class="extend-inner header-inner"     style="max-width: 600px; margin: 0 auto;"   >     <a       href="${SITE_URL}"       style="color: #fff; text-decoration: none;font-size:30px;font-weight:normal"     >       ${SITE_NAME}     </a>   </div> </div> <div class="extend title" style="padding: 20px 20px; background: #f9f9f9;">   <div     class="extend-inner title-inner"     style="max-width: 600px; margin: 0 auto;"   >     <h1       style="font-weight: 300; font-size: 1.4em; margin: 0.67em 0; line-height: 1.4;"     >       ${NICK} 回复了您的评论     </h1>   </div> </div> <div class="extend content" style="padding: 20px 20px;">   <div     class="extend-inner content-inner"     style="max-width: 600px; margin: 0 auto;"   >     <p>       <strong>${PARENT_NICK}</strong>,您曾在       <a         href="${SITE_URL}"         style="color: rgb(3,120,221);border-bottom: 1.0px solid rgb(3,120,221);text-decoration: none;margin-bottom: 2.0px;"         >${SITE_NAME}</a       >       上发布评论:     </p>     <div       class="extend footer"       style="padding: 20px 20px; background: #eee; color: #666; font-size: 90%;"     >       <div         class="extend-inner footer-inner"         style="max-width: 600px; margin: 0 auto;"       >         ${PARENT_COMMENT}       </div>     </div>     <p><strong>${NICK}</strong> 回复:</p>     <div       class="extend footer"       style="padding: 20px 20px; background: #eee; color: #666; font-size: 90%;"     >       <div         class="extend-inner footer-inner"         style="max-width: 600px; margin: 0 auto;"       >         ${COMMENT}       </div>     </div>     <p>       <a         href="${POST_URL}"         style="color: rgb(3,120,221);border-bottom: 1.0px solid rgb(3,120,221);text-decoration: none;margin-bottom: 2.0px;"         >查看评论</a       >     </p>     <hr       style="display: block;height: 1.0px;border: 0;border-top: 5.0px solid rgb(238,238,238);margin: 1.0em 0;padding: 0;"     />     <p       class="text-center shy"       style="color: rgb(153,153,153);text-align: center;"     >       扫二维码,关注微信公众号     </p>     <p class="text-center" style="text-align: center;">       <img         src="https://www.meancoder.xyz/images/wechat_channel.png"         style="max-width: 400px;width: 100%;"       />     </p>   </div> </div> <div   class="extend footer"   style="padding: 20px 20px; background: #eee; color: #666; font-size: 90%;" >   <div     class="extend-inner footer-inner"     style="max-width: 600px; margin: 0 auto;"   >     <p>       欢迎再次访问       <a href="${SITE_URL}" style="color: #444;">${SITE_NAME}</a       >,如果有疑问或其他想法,<a         href="mailto:390602272@qq.com"         style="color: #444;"         >请与我联系</a       >。     </p>     <p>本邮件由系统自动发出,请勿直接回复。</p>   </div> </div>
   | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
   | <div class="extend header" style="background: #1e1f27; padding: 40px 20px;">   <div     class="extend-inner header-inner"     style="max-width: 600px; margin: 0 auto;"   >     <a       href="${SITE_URL}"       style="color: #fff; text-decoration: none;font-size:30px;font-weight:normal"     >       ${SITE_NAME}     </a>   </div> </div> <div class="extend title" style="padding: 20px 20px; background: #f9f9f9;">   <div     class="extend-inner title-inner"     style="max-width: 600px; margin: 0 auto;"   >     <h1       style="font-weight: 300; font-size: 1.4em; margin: 0.67em 0; line-height: 1.4;"     >       ${NICK} 发布了新评论     </h1>   </div> </div> <div class="extend content" style="padding: 20px 20px;">   <div     class="extend-inner content-inner"     style="max-width: 600px; margin: 0 auto;"   >     <p><strong>${NICK}</strong> 发布评论:</p>     <div       class="extend footer"       style="padding: 20px 20px; background: #eee; color: #666; font-size: 90%;"     >       <div         class="extend-inner footer-inner"         style="max-width: 600px; margin: 0 auto;"       >         ${COMMENT}       </div>     </div>     <p>       <a         href="${POST_URL}"         style="color: rgb(3,120,221);border-bottom: 1.0px solid rgb(3,120,221);text-decoration: none;margin-bottom: 2.0px;"         >查看评论</a       >     </p>   </div> </div>
   |