EvanNotFound / hexo-theme-redefine

Simplicity in Speed, Purity in Design: Redefine Your Hexo Journey.
https://redefine.ohevan.com
GNU General Public License v3.0
1.31k stars 102 forks source link

[功能建议] 相关文章 #48

Closed ClaireLind1 closed 1 year ago

ClaireLind1 commented 1 year ago

功能概述

标签外挂 Note (Bootstrap Callout)

希望能添加该功能,否则移植主题的时候会由于部分代码不识别报错,大量修改笔记代码太麻烦。

描述

type: 'unknown block tag: note'

EvanNotFound commented 1 year ago

v1.0.0 版本会更新此功能

EvanNotFound commented 1 year ago

已在 v1.0.0 增加此功能,请更新 v1.0.0 版本

ClaireLind1 commented 1 year ago

你好,

谢谢回复以及主题更新。我是从butterfly移植过来的,但是Note (Bootstrap Callout)用的是标签外挂(跟NexT的一致),我试了一下发现现在的redefine主题支持Volantis的folding 折叠框(即使官方文档没提),蛮好用的。

另外想问一下:

  1. redefine主题是不打算给page添加头图和封面吗?(更换主题后banner和cover不显示)
  2. Archive下面是不可以放submenus吗?(试过不生效) ··· Archives: path: /archives icon: fa-regular fa-archive # can be empty submenus: Timeline: /timeline Categories: /categories Tags: /tags fas fa-tags ···

另外有几个我认为不错的功能或许可以考虑更新一下:

  1. Tabs(分栏)https://theme-next.js.org/docs/tag-plugins/tabs Butterfly的tab标签和Volantis的tab标签都是移值自NexT主题,所以写法和效果一模一样。
  2. Button: https://butterfly.js.org/posts/4aa8abbe/#Button
  3. Related posts(现在在page的下方已有previous post和next post,写同一主题的文档还好,写的内容变多变杂则上下posts容易缺乏关联性)
  4. 打赏功能

Best regards, Tong

Evan Luo @.***> 于2023年1月19日周四 12:43写道:

请问你是从哪个主题移植过来的?

请提供一下源主题,我看看

— Reply to this email directly, view it on GitHub https://github.com/EvanNotFound/hexo-theme-redefine/issues/48#issuecomment-1396919580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU4CQWHVAH3KN6LFYW7CB2TWTEZI3ANCNFSM6AAAAAAT75UB3M . You are receiving this because you authored the thread.Message ID: @.***>

EvanNotFound commented 1 year ago

好的,后面会添加

EvanNotFound commented 1 year ago

关于 Archive,是因为主题自带模版和用户配置冲突了,我下一版本改进。 你可以注释掉主题目录(/themes/redefine)下的 _config.yml 中的 menu 选项中的 Archive 选项,再在 _config.redefine.yml 里面配置二级菜单

xcx2006 commented 1 year ago

你好, redefine可以加一下特效的脚本吗比如

!function(e,t,a){function n(){c(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 500%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),o(),r()}function r(){for(var e=0;e<d.length;e++)d[e].alpha<=0?(t.body.removeChild(d[e].el),d.splice(e,1)):(d[e].y--,d[e].scale+=.004,d[e].alpha-=.013,d[e].el.style.cssText="left:"+d[e].x+"px;top:"+d[e].y+"px;opacity:"+d[e].alpha+";transform:scale("+d[e].scale+","+d[e].scale+") rotate(45deg);background:"+d[e].color+";z-index:99999");requestAnimationFrame(r)}function o(){var t="function"==typeof e.onclick&&e.onclick;e.onclick=function(e){t&&t(),i(e)}}function i(e){var a=t.createElement("div");a.className="heart",d.push({el:a,x:e.clientX-5,y:e.clientY-5,scale:1,alpha:1,color:s()}),t.body.appendChild(a)}function c(e){var a=t.createElement("style");a.type="text/css";try{a.appendChild(t.createTextNode(e))}catch(t){a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}function s(){return"rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"}var d=[];e.requestAnimationFrame=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)}}(),n()}(window,document);
xcx2006 commented 1 year ago

希望还能加一下背景透明的效果 谢谢 =)

EvanNotFound commented 1 year ago

希望还能加一下背景透明的效果 谢谢 =)

你好, redefine可以加一下特效的脚本吗比如

!function(e,t,a){function n(){c(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 500%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),o(),r()}function r(){for(var e=0;e<d.length;e++)d[e].alpha<=0?(t.body.removeChild(d[e].el),d.splice(e,1)):(d[e].y--,d[e].scale+=.004,d[e].alpha-=.013,d[e].el.style.cssText="left:"+d[e].x+"px;top:"+d[e].y+"px;opacity:"+d[e].alpha+";transform:scale("+d[e].scale+","+d[e].scale+") rotate(45deg);background:"+d[e].color+";z-index:99999");requestAnimationFrame(r)}function o(){var t="function"==typeof e.onclick&&e.onclick;e.onclick=function(e){t&&t(),i(e)}}function i(e){var a=t.createElement("div");a.className="heart",d.push({el:a,x:e.clientX-5,y:e.clientY-5,scale:1,alpha:1,color:s()}),t.body.appendChild(a)}function c(e){var a=t.createElement("style");a.type="text/css";try{a.appendChild(t.createTextNode(e))}catch(t){a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}function s(){return"rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"}var d=[];e.requestAnimationFrame=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)}}(),n()}(window,document);

请新开issue详细描述一下 @xcx2006

EvanNotFound commented 1 year ago

你好, 谢谢回复以及主题更新。我是从butterfly移植过来的,但是Note (Bootstrap Callout)用的是标签外挂(跟NexT的一致),我试了一下发现现在的redefine主题支持Volantis的folding 折叠框(即使官方文档没提),蛮好用的。 另外想问一下: 1. redefine主题是不打算给page添加头图和封面吗?(更换主题后banner和cover不显示) 2. Archive下面是不可以放submenus吗?(试过不生效) ··· Archives: path: /archives icon: fa-regular fa-archive # can be empty submenus: Timeline: /timeline Categories: /categories Tags: /tags fas fa-tags ··· 另外有几个我认为不错的功能或许可以考虑更新一下: 1. Tabs(分栏)https://theme-next.js.org/docs/tag-plugins/tabs Butterfly的tab标签和Volantis的tab标签都是移值自NexT主题,所以写法和效果一模一样。 2. Button: https://butterfly.js.org/posts/4aa8abbe/#Button 3. Related posts(现在在page的下方已有previous post和next post,写同一主题的文档还好,写的内容变多变杂则上下posts容易缺乏关联性) 3. 打赏功能 Best regards, Tong Evan Luo @.> 于2023年1月19日周四 12:43写道: 请问你是从哪个主题移植过来的? 请提供一下源主题,我看看 — Reply to this email directly, view it on GitHub <#48 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU4CQWHVAH3KN6LFYW7CB2TWTEZI3ANCNFSM6AAAAAAT75UB3M . You are receiving this because you authored the thread.Message ID: @.>

已经添加部分功能,欢迎前往 Release 页面查看:https://github.com/EvanNotFound/hexo-theme-redefine/releases/tag/v1.1.0

EvanNotFound commented 1 year ago

Redefine v1.1.1 已更新此功能,欢迎前往 https://github.com/EvanNotFound/hexo-theme-redefine/releases/tag/v1.1.1 查看