Skip to content
New issue

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

自动形成摘要 #178

Closed
zqdongxw opened this issue May 22, 2015 · 3 comments
Closed

自动形成摘要 #178

zqdongxw opened this issue May 22, 2015 · 3 comments
Milestone

Comments

@zqdongxw
Copy link

可以通过description和more标签指定摘要,如果未指定的话,希望可以实现通过自动截取前几百字或者前几段自动生成摘要。

@suoba
Copy link

suoba commented May 25, 2015

对啊,我最想要这个了,谁知道怎么做。

@iissnan
Copy link
Owner

iissnan commented May 25, 2015

提供一个思路,使用 swig-extratruncate 截取指定长度的字符,例如 WordPress 是截取 55 个字符。

或许,得再加一个控制的选项,是否自动进行文章的截取。

@iissnan iissnan added this to the v0.4.1 milestone May 27, 2015
@iissnan
Copy link
Owner

iissnan commented Jul 14, 2015

增加了一个 auto_excerpt,自动截取文章内容。
此选项默认关闭,开启后默认的截取字符个数是 150 个,具体设定如下:

auto_excerpt:
  enable: false
  length: 150

@zqdongxw @suoba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants