We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以通过description和more标签指定摘要,如果未指定的话,希望可以实现通过自动截取前几百字或者前几段自动生成摘要。
The text was updated successfully, but these errors were encountered:
对啊,我最想要这个了,谁知道怎么做。
Sorry, something went wrong.
提供一个思路,使用 swig-extra 的 truncate 截取指定长度的字符,例如 WordPress 是截取 55 个字符。
truncate
或许,得再加一个控制的选项,是否自动进行文章的截取。
Feature: add an option for generating excerpt automatically. #178
6a9968c
增加了一个 auto_excerpt,自动截取文章内容。 此选项默认关闭,开启后默认的截取字符个数是 150 个,具体设定如下:
auto_excerpt
auto_excerpt: enable: false length: 150
@zqdongxw @suoba
No branches or pull requests
可以通过description和more标签指定摘要,如果未指定的话,希望可以实现通过自动截取前几百字或者前几段自动生成摘要。
The text was updated successfully, but these errors were encountered: