Skip to content

自动形成摘要 #178

Closed
Closed

Description

@zqdongxw

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

Activity

  1. suoba commented on May 25, 2015

    @suoba

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

  2. iissnan commented on May 25, 2015

    @iissnan
    Owner

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

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

  3. added this to the milestone on May 27, 2015
  4. iissnan commented on Jul 14, 2015

    @iissnan
    Owner

    增加了一个 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions