不用改代码那么复杂吧,主题配置文件中的自动摘要就是不带样式的纯文本:
# Automatically Excerpt. Not recommend.
# Please use <!-- more --> in the post to control excerpt accurately.
auto_excerpt:
enable: true
length: 200
enable设置为true,length控制自动摘要的字数。
@skyue
呃,,,
还能说啥
完美解决了我的问题
汗。。。
不过我这急性子自己也写好了。。
哈哈,又看到这个设置了,不错!~!
想知道怎么显示有样式的文本?==。。。。
Most helpful comment
不用改代码那么复杂吧,主题配置文件中的自动摘要就是不带样式的纯文本:
enable设置为true,length控制自动摘要的字数。