| Summary | Topic List Excerpts allows you to enable excerpts for unpinned topics (by default, Discourse only displays topic excerpts for pinned topics). | |
| Preview | Preview on Discourse Theme Creator | |
| Repository Link | https://github.com/discourse/discourse-topic-excerpts | |
| New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Features
Works great alongside Topic List Thumbnails in “list” mode!
The excerpts themselves are generated by Discourse Core, using the same logic as the excerpts of ‘pinned’ topics. If you have a query / suggestion about how the excerpts are built, please make a new support topic.
Tip: you can keep line breaks in excerpts by adding this CSS to your theme:
.topic-list .topic-excerpt {
white-space: pre-line;
}
Be aware that results may look off depending on the posts’ contents.
Settings
| Name | Description |
|---|---|
| show excerpts mobile | |
| show excerpts desktop | |
| enabled categories | Enable excerpts in specific categories. Leave both categories and tags blank to show excerpts on all routes |
| enabled tags | Enable excerpts in specific tags. Leave both categories and tags blank to show excerpts on all routes. |
Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.
Last edited by @JammyDodger 2024-06-15T19:28:50Z
Check document
Perform check on document:



