改进置顶话题摘录

This is just my opinion, but I’d ignore the site setting. You are going out of your way to provide the excerpt, whereas the site setting is there for the system automating the excerpt.

3 个赞

in the queue…

3 个赞

This does not work for me, or I’m not using it correctly:

Приглашаю всех желающих обсудить программу по учету стада,
которую мы можем разработать для козоводов! Слушаю ваши требования.
Что хотите учитывать, и какие возможности программы нужны именно
вам? <span class='excerpt'>[>>> Перейти в тему для обсуждения <<<]
(http://forum.kozovod.com/t/uchet-stada-sozdanie-programmy-sobiraem-mneniya-kozovodov/1938)</span>

… isn’t trimmed in the banner:

I noticed that there was a SiteSetting.post_excerpt_maxlength setting. Which I assume is this:
image

I was hoping to change the length of a pinned topic/post excerpt. Upon digging into the code, I noticed this:

It appears 220 is being used for a (pinned) topic excerpt.

I was wondering what the SiteSetting.post_excerpt_maxlength setting did, and if the pinned topic excerpt length can be made into a setting?

6 个赞

我刚发现这里最初的帖子,有点失望的是,没有提供仅在摘要中显示第一段的选项。

是否可以使用 CSS 实现此功能?我想在置顶帖子的摘要中仅显示第一段。

2 个赞

或者有没有办法复制第一个帖子,这样你就可以有一个带有摘录的帖子和一个带有更深入信息的帖子?

我知道这似乎是大多数 Discourse 团队都非常看重帖子的时间顺序(尽管将帖子从另一个主题移走会破坏时间顺序)

1 个赞

我想要…也…

1 个赞

除了重新烘焙,还有其他解决方法吗?

我有一个主题需要一个更短的摘录。我猜删除并在设置降低后重新发布是唯一的选择?或者那也无法解决?

这两个设置中的哪一个?

编辑:

这对我有效!我将其用于帖子的第一句话,并产生了预期的效果。(当然也不必更改上述设置)谢谢!

1 个赞