theme-next / hexo-theme-next

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

无法设置自动折叠帖子 #1720

Closed coool-sheep closed 1 year ago

coool-sheep commented 1 year ago

Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

帖子自动折叠,就像这样,有read more功能 image

Actual behavior

image

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A

Environment Information

Node.js and NPM Information

Package dependencies Information

Hexo Configuration

NexT Configuration

# Automatically excerpt description in homepage as preamble text.
excerpt_description: true

# Read more button
# If true, the read more button will be displayed in excerpt section.
read_more_btn: true

Other Information

welcome[bot] commented 1 year ago

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

stevenjoezhang commented 1 year ago

excerpt_description 这个不是自动生成摘要的功能,描述可能有点误导。

coool-sheep commented 1 year ago

excerpt_description 这个不是自动生成摘要的功能,描述可能有点误导。 好的。不过请问想要做到题目中的效果的话需要修改哪些呢

stevenjoezhang commented 1 year ago

可以装一个插件:

https://github.com/chekun/hexo-excerpt 或者 https://github.com/ashisherc/hexo-auto-excerpt

GitHub
GitHub - chekun/hexo-excerpt: Automatic excerpt generator for Hexo
Automatic excerpt generator for Hexo. Contribute to chekun/hexo-excerpt development by creating an account on GitHub.
GitHub
GitHub - ashisherc/hexo-auto-excerpt: Auto excerpt plugin for hexo. No need to manually add tag.
Auto excerpt plugin for hexo. No need to manually add tag. - GitHub - ashisherc/hexo-auto-excerpt: Auto excerpt plugin for hexo. No need to manually add tag.
coool-sheep commented 1 year ago

问题解决了!非常感谢!