Open coloraven opened 1 year ago
请按照此新功能模版提供相关信息,如详细的功能描述或同类效果屏幕截图,这将有助于我们进行调查。 (Please follow this new feature template to provide relevant information, such as detail description for feature or some screenshots, which will help us investigate.)
代码块过长时占用文章布局,但有时又是必须的,希望增加代码块的折叠和逆折叠功能,类似这里的效果:
https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/special/#code代码块
这个功能有想过要实现,但要看官方的插件是否支持,难度有点大,后面研究看看。
这是我找到的hugo代码折叠项目,供参考:https://github.com/jiridj/hugo-collapsible-code 我是在这里发现的:https://jiridj.be/posts/collapsible-code-block/
请按照此新功能模版提供相关信息,如详细的功能描述或同类效果屏幕截图,这将有助于我们进行调查。 (Please follow this new feature template to provide relevant information, such as detail description for feature or some screenshots, which will help us investigate.)
新功能描述 (New feature description)
代码块过长时占用文章布局,但有时又是必须的,希望增加代码块的折叠和逆折叠功能,类似这里的效果:
https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/special/#code代码块
效果参考截图 (Screenshots if it possible)