next主题7.8版本设置阅读全文
**问题描述:**next主题7.8版本设置阅读全文,需要下载插件,然后在主题配置文件_config.yml配置就好了。
解决办法:
- 在博客目录下执行
npm install hexo-excerpt --save
- 在站点配置文件(不是主题的配置文件)_config.yml添加
excerpt: # 一定要顶格写,注意格式
depth: 5 # 他的大小就是全文阅读预览长度设置
excerpt_excludes: []
more_excludes: []
hideWholePostExcerpts: true
- 在主题配置文件中_config.yml里 excerpt_description 改为true
# Automatically excerpt description in homepage as preamble text.
excerpt_description: true # 一般默认为true
在Next主题7.8版本中设置阅读全文功能,需要通过npm安装hexo-excerpt插件,并在博客的站点配置文件和主题配置文件中进行相应设置。在站点的_config.yml中添加excerpt配置,包括预览长度和排除项;在主题的_config.yml中将excerpt_description设为true,即可实现全文阅读功能。
3548

被折叠的 条评论
为什么被折叠?



