话题列表摘要

:discourse2: 摘要 主题列表摘要 允许您为未置顶的主题启用摘要(默认情况下,Discourse 仅显示置顶主题的摘要)。
:eyeglasses: 预览 在 Discourse 主题创建器中预览
:hammer_and_wrench: 仓库链接 https://github.com/discourse/discourse-topic-excerpts
:open_book: Discourse 主题新手? Discourse 主题使用入门指南

安装此主题组件

功能

在“列表”模式下,与 Topic List Thumbnails 配合使用效果极佳!

:information_source: 摘要本身由 Discourse Core 生成,使用与“置顶”主题摘要相同的逻辑。如果您有关于摘要构建方式的疑问或建议,请创建一个新的 Support 主题。


:bulb: 提示:您可以通过在主题中添加以下 CSS 来保留摘要中的换行符:

.topic-list .topic-excerpt {
    white-space: pre-line;
}

请注意,根据帖子内容的不同,显示效果可能会有所偏差。

设置

名称 描述
show excerpts mobile 在移动设备上显示摘要
show excerpts desktop 在桌面设备上显示摘要
enabled categories 在特定分类中启用摘要。如果分类和标签均留空,则在所有路由上显示摘要
enabled tags 在特定标签中启用摘要。如果分类和标签均留空,则在所有路由上显示摘要

:discourse2: 由我们托管? 主题组件可在我们的标准版、商业版和企业版计划中使用。

47 个赞
MD Topic List component
Best way to implement Excerpts in topic list?
Topic List Previews (legacy)
Topic preview text
MD Topic List Mobile component
Topic List Previews (TLP)
How to keep line breaks on excerpts?
Customizing your site with existing theme components
Expand new posts in topics in "Unread" and "New" to full summary
Topic Author
All links to categories broken?
Topic List Latest-Post Excerpt
Information about topic is not updated when using new & unread topics banner
Compact and AI Expanded
Displaying Views in Topic view (with no replies)
Topic List Latest-Post Excerpt
Google complaining about slow Interaction to Next Paint (INP) on Discourse sites
Using Discourse as a social media platform
Formatting breaks when Topic (List) Excerpts theme component used with RSS Polling plugin
Display first 5 lines of every post
Discourse AI Topic Summary :robot:
Topic List Thumbnails
Display post content in homepage
Display post content in homepage
New users can't sign up, 404 errors in console
Is there a way to display topic contents in category view?
Topic List Thumbnails
Discourse AI Topic Summary :robot:
How to disable topic excerpts in category page
Potential way to hide ignored users from topic list?
Discourse Topic List Author & Posters
Discourse Topic Excerpts & AI Gists Button
Display in the topics list in homepage also the body topic
Display replies and likes count in mobile view
Is there a plugin to make my forum a shop?
Why do excerpts include some HTML tags, but not others?
Latest activity list as for replies
How to add topic excerpt to all my topics
How to show part of the text under the topic head?
Static content on Category main page
Discourse Category Lockdown
How can I keep post views on lists
How to change the topic excerpt from the first post to the last post?
Discourse Docs

太好了,一个类似博客的主题列表(配合主题列表缩略图组件)!:clap:

它可以像其他组件一样按类别进行限制吗?

7 个赞

好的,我刚添加了一个类别设置:

13 个赞

谢谢,非常感谢。

我也想借此机会报告,主题缩略图组件存在某种不兼容问题,因为每个主题在主题列表中会出现两次图片(缩略图组件的主题列表选项 + 主题摘要组件)。

2 个赞

您说得对,对此深感抱歉。问题现已修复。

9 个赞

喜欢这个组件,谢谢!有没有办法调整主题列表中显示的摘录的单词/字符长度?(算了,我找到了“主题摘录最大长度”站点设置,调整了它,并重新构建了相关主题帖的 HTML。)

4 个赞

分类设置有效,但标签设置在最新的 discourse 中无效。

2 个赞

@th21 标签处理现已修复——抱歉耽搁了!

3 个赞

帖子已拆分为新主题:仅在 /latest 上为某些类别显示摘录

帖子已拆分为新主题:使用不同颜色区分主题列表行中的内容

您好,为什么我的网站上的“阅读更多”是灰色的,而您的网站上是蓝色的,我该如何更改颜色?

1 个赞

您可以使用 CSS 进行自定义。

例如,使用链接的预定义颜色。不过,您可以提供想要的 颜色

.topic-excerpt-more {
    color: var(--tertiary);
}
1 个赞

您好,此组件呈现在 discourse 文档插件页面上,并使摘录可点击至 discourse 讨论的 URL,而不是文档的 URL,有什么方法可以避免这种情况发生吗?

您好,可以显示最新帖子而不是第一篇帖子吗?

2 个赞

我有一个插件+主题组件,用于:Topic List Latest-Post Excerpt

2 个赞

桌面版主题组件有问题?

启用它时,头像显示如下:

我今天更新了我的 Discourse

编辑:有没有办法限制摘录的行数/字符数?

2 个赞

是的,我也是。

最新情况是,当我注销时一切正常,但当启用 discourse-right-sidebar-blocks 时,其他路由会出现这种情况。

Excerpt 的切换按钮在手机上不可见。是设计如此,还是我问得太早了?

我喜欢这个!有什么方法可以阻止摘录显示在私人消息中吗?

我试过这个组件,它在个人消息中不显示摘要。:thinking: