Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 静态说说功能添加 #1290

Open
YuZhangWang opened this issue May 26, 2023 · 11 comments
Open

[Feature]: 静态说说功能添加 #1290

YuZhangWang opened this issue May 26, 2023 · 11 comments
Labels
enhancement New feature or request

Comments

@YuZhangWang
Copy link

YuZhangWang commented May 26, 2023

想要的功能 | What feature do you want?

butterfly主题是有说说功能的,不过都需要依靠云端来实现,例如下面使用Artitalk实现的功能
图片

链接内容是实现本地静态说说功能,也就是说,和博客差不多,都是本地写完发布才看得到
https://blog.zhheo.com/p/557c9e72.html

不过上面的实现方法需要对主题进行魔改,这并不利于日后主题的更新,因此能否将静态说说的功能内置进主题,实现成类似于下方瀑布流说说的例子
https://blog.zhheo.com/essay/

图片

图片

功能概述:在data_中添加一个yml文件,在其中进行需要的说说书写,并且添加一个对应的说说页面,生成之后就会有一个瀑布流的说说页面可以展示。并且其中可以支持md图片的插入或者音乐的插入实现(例如网易云音乐),整体的思路在我看来,类似于友链功能页面的实现

图片

补充说明,可以基于时间线这个标签功能进行升级改进

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 26, 2023
@YuZhangWang
Copy link
Author

捞,防止自动关闭

@GrassBlock1
Copy link

这思路不错 顶一个

@github-actions github-actions bot removed the stale label Jun 27, 2023
@felixesintot
Copy link

不错

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 1, 2023
@JimLeon595
Copy link

Please add this

@github-actions github-actions bot removed the stale label Aug 3, 2023
@LittleNyima
Copy link
Contributor

感觉这个功能挺有意思,我近期或许可以尝试集成一下(目前打算把这个模块命名为snippets)

@YuZhangWang
Copy link
Author

Update,看到一个很好的项目可以引用

xaoxuu/blog-timeline#1,这是一个hexo主题作者在他这个主题中实现的可以插入任何地方的动态功能,关于效果可以访问作者的 展示页面 进行查看

这个功能是基于issues实现的,因此我们可以把思路扩宽一下

在以下效果可以实现的前提之下

想要的功能 | What feature do you want?

butterfly主题是有说说功能的,不过都需要依靠云端来实现,例如下面使用Artitalk实现的功能 图片

链接内容是实现本地静态说说功能,也就是说,和博客差不多,都是本地写完发布才看得到 blog.zhheo.com/p/557c9e72.html

不过上面的实现方法需要对主题进行魔改,这并不利于日后主题的更新,因此能否将静态说说的功能内置进主题,实现成类似于下方瀑布流说说的例子 blog.zhheo.com/essay

图片

图片

功能概述:在data_中添加一个yml文件,在其中进行需要的说说书写,并且添加一个对应的说说页面,生成之后就会有一个瀑布流的说说页面可以展示。并且其中可以支持md图片的插入或者音乐的插入实现(例如网易云音乐),整体的思路在我看来,类似于友链功能页面的实现

图片

补充说明,可以基于时间线这个标签功能进行升级改进

放弃本地写完再生成,然后内容存储在仓库的方式,改变存储位置,直接利用GitHub issues,将说说内容全部保存到issues当中,具体可以参考 https://github.com/giscus/giscus 的实现。在Github启用giscus bot,然后进行参数配置,之后在已经适配了的hexo主题中启用该功能,然后就可以将discussions作为网站的评论系统了,同样的,如果按照上面的流程,利用issues来实现网站的说说系统,那么就能够大大节省服务器这一块的成本,以及大大减少流程所需的步骤

总结:
瀑布流的展示好处在于,效果更加美观,本地写完再发布也省去了云服务器以及需要其他的云端服务的步骤,但是每次都需要本地书写再发布,步骤上可以优化

xaoxuu/blog-timeline#1 的时间线功能,将如同利用 https://github.com/giscus/giscus 实现评论这般的便利性,引入了 动态/说说/即刻/短文 之中。因此如果能将如此美观的瀑布流说说和如此便利的评论系统两者的优点结合起来,将利用GitHub issues实现的魔改Hexo瀑布流说说这一功能,嵌入到butterfly本体当中,那么将会为这个主题锦上添花

这里建议,使用issues实现这个功能,这样Discussions可以用来生成评论,而issues

涉及的三个方面

  • 瀑布流,美观方面
  • issues,便利性
  • giscus,不需要服务器部署以及云端服务实现

@YuZhangWang
Copy link
Author

YuZhangWang commented Aug 31, 2023

Update,目前我放弃了自带的时间线标签功能,直接创建一个空白页面,然后利用giscus,直接将评论当作我的说说使用,这样的优点是,支持markdown,也就是说,支持链接、图片、歌曲等Markdown一切支持的东西。然后把这个讨论给锁定,这样别人就无法评论。书写便利性而言,我用手机版Github,直接像写动态一样发布就行了。详情可以看 YuZhangWang.github.io/discussions/17说说,整体而言,目前我用着最为便捷和高效

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 1, 2023
@github-actions github-actions bot closed this as completed Oct 9, 2023
@jerryc127 jerryc127 reopened this Oct 9, 2023
@jerryc127 jerryc127 added the enhancement New feature or request label Oct 9, 2023
@github-actions github-actions bot removed the stale label Oct 10, 2023
@XenWayne
Copy link

XenWayne commented May 1, 2024

有相关实现,Lete114/hexo-artitalk-static
但是没有pjax相关支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants