theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.12k stars 2.05k forks source link

自定义:添加代码块折叠 #1732

Open yltx opened 1 year ago

yltx commented 1 year ago

我想按照这里的方式添加代码块折叠功能,但该文的版本过于古老,现版本是否有更好的解决方式?如果没有,相关文件应该如何修改?

custom_file_path:
  #head: source/_data/head.njk
  #header: source/_data/header.njk
  #sidebar: source/_data/sidebar.njk
  #postMeta: source/_data/post-meta.njk
  #postBodyStart: source/_data/post-body-start.njk
  #postBodyEnd: source/_data/post-body-end.njk
  footer: source/_data/footer.swig
  #bodyEnd: source/_data/body-end.njk
  #variable: source/_data/variables.styl
  #mixin: source/_data/mixins.styl
  style: source/_data/styles.styl

应该创建哪一个文件?