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

更新Hexo 5.0.0及NexT v8.0.0-rc.5后存在的一些问题 #71

Closed
kuretru opened this issue Aug 1, 2020 · 6 comments
Closed

更新Hexo 5.0.0及NexT v8.0.0-rc.5后存在的一些问题 #71

kuretru opened this issue Aug 1, 2020 · 6 comments
Labels
Bug Something isn't working Feature Request New feature or request Solved
Milestone

Comments

@kuretru
Copy link

kuretru commented Aug 1, 2020

  1. 代码高亮Prism.js:使用非Prism原生主题(Prism additional themes),会提示找不到依赖,需要手动添加prism-themes包*
err: Error: Cannot find module 'prism-themes/package.json'
  1. 代码高亮Prism.jscopy_button无法显示,切回highlight.js后正常
  2. 动画效果Animate.css:启用async选项后,post_headerpost_body会依次在post_block后出现,按我的理解应该是这三者同时出现,请问这是bug还是feature?
  3. 动画效果Animate.css:在设置vendors.internal=jsdelivr后,/lib/animate-css/animate.min.css仍从本地载入
@kuretru kuretru added the Bug Something isn't working label Aug 1, 2020
@welcome
Copy link

welcome bot commented Aug 1, 2020

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@stevenjoezhang
Copy link
Member

stevenjoezhang commented Aug 1, 2020

谢谢反馈。

  1. 安装 prism-themes 在文档中注明了: https://theme-next.js.org/highlight/
    更新:现在改得更显眼了,应该不会被忽略: next-theme/theme-next-docs@be80d69

截屏2020-08-01 下午4 54 50

  1. 这个可以实现,下个版本应该能加上;

  2. 我确认一下能否同时出现。因为 post_headerpost_bodypost_block 的子元素,动画可能会被跳过;

  3. 目前来说这是预期行为,因为 internal 选项只负责这几个文件的加载: https://github.com/next-theme/hexo-theme-next/tree/master/source/js
    animate.min.css 算是第三方插件,因此需要手动设置 CDN 链接。不过这样确实比较麻烦,未来可能新增一个选项,允许将全部的第三方插件脚本通过选定的 CDN 服务加载,而不需要一个个单独设置。讨论见: fix not updated Internal version #70 Refactor vendors #72

@kuretru
Copy link
Author

kuretru commented Aug 1, 2020

感谢回复,第4点是我自己的问题,我搞混了animeanimate_css,仅设置了anime的CDN地址

@stevenjoezhang stevenjoezhang added this to the 8.0.0 milestone Aug 1, 2020
@stevenjoezhang
Copy link
Member

更新:

  1. Prism.js 已支持 copy_button 04da779

  2. post_headerpost_body 会依次在 post_block 后出现是 feature,这一行为可以追溯到 2017 年 8 月的 commit: Refactor motion & sidebar affix global fix. iissnan/hexo-theme-next#1829

@stevenjoezhang stevenjoezhang added Feature Request New feature or request Solved labels Aug 1, 2020
@stevenjoezhang
Copy link
Member

这些问题应该都解决了,如果有其它疑问欢迎提出。另见 #75

@github-actions
Copy link

github-actions bot commented Aug 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Feature Request New feature or request Solved
Projects
None yet
Development

No branches or pull requests

2 participants