Mimi
Mimi
Hexo 已实现文章置顶参数: https://github.com/hexojs/hexo-generator-index/pull/51
Is the content of the json file generated automatically or edited by the blogger?
已经有这个功能了 ``` {% note info no-icon This is a summary %} {% code %} code block in note tag code block in note tag code block in note tag {%...
此功能已在新版本的 NexT 中添加:https://github.com/next-theme/hexo-theme-next 感谢您的贡献。
我不确定这个「多国语言切换的按钮」需要多智能? 举例用的 https://hexo.io 的按钮,在任何界面点击都会「回到首页」,而不是「跳转到与当前对应的页面」。
我想你说的是这个效果: https://dengcb.com/zh/page/2/ Pull Request已经有了: https://github.com/theme-next/hexo-theme-next/pull/1391 但是,Hexo默认的generator并不会为不同语言生成单独的首页和归档页面。你需要借助 https://github.com/Jamling/hexo-generator-i18n 这样的第三方插件,或者用不同的配置多次执行`hexo g`,否则「跳转到与当前对应的页面」可能失败:例如,只有中文归档页面,而没有英文归档页面,那么切换语言就会导致404 not found。这涉及到Hexo的核心功能,不是一个主题负责的范围,因此你需要自行解决。
是的,自带生成器没有考虑这个问题,主题要集成多语言,只能暴力改: https://github.com/ppoffice/hexo-theme-minos/commit/f0269850ab83fba1200457c40d9e59c49a027fe4 期望 Hexo 在未来提供统一的接口: https://github.com/hexojs/hexo/issues/1125#issuecomment-592967293
https://github.com/next-theme/hexo-theme-next
Hexo 已实现文章置顶参数: https://github.com/hexojs/hexo-generator-index/pull/51
可以使用 https://github.com/fletchto99/hexo-sliding-spoiler + codeblock