# Topic Excerpts & AI Gists Button

**URL:** https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885
**Category:** Theme component
**Tags:** ai, topic-list-excerpts
**Created:** [February 1, 2026, 4:04pm UTC](https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885 "2026-02-01T16:04:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [February 1, 2026, 4:04pm UTC](https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885/1 "2026-02-01T16:04:48Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Combines the Topic List Excerpts and AI summary gists buttons |
| 🛠 | **Repository** | [https://github.com/Lillinator/topic-excerpts-gists-button](https://github.com/Lillinator/topic-excerpts-gists-button) |
| ❓ | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

Install this theme component

> 💡 Note - this theme component assumes you at least have the [Topic List Excerpts](https://meta.discourse.org/t/topic-list-excerpts/151520) component installed. Enabling [AI summary gists](https://meta.discourse.org/t/summarize-gists/340269) is optional, but this component is intended to work with both.

## 👩🏻‍💻 Overview

This theme component combines the Discourse AI summary gists button, and the Topic List Excerpts button to make the three topic list view options more convenient for users with a one-button solution.

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/c/2/3c25b4ef168bc3ee1409e2a7007aa3d76b9bed5c.png)

It can also be used without AI summaries for just default compact and excerpts to provide a better UX, since the Topic Lists Excerpts toggle disappears by default in mobile-sized viewport.

The component also includes a new button icon for Topic List Excerpts, a toggle to show or hide the main button labels, as well as options for editing the label texts.

* * *

## ⚙ Settings

| Setting | Description |
| --- | --- |
| `Show labels` | Enable or disable the button labels in desktop and tablet viewport sizes. The drop down options always show the labels in desktop. Mobile always just shows icons. |

## 📸 Screenshots

#### Default Admin settings

Administrators can chose to show a text label on desktop, as well as edit the button label strings.

 ![Component admin page](https://global.discourse-cdn.com/meta/original/4X/3/6/c/36cbaa8135c2159cfa8ed041d7c8480e71bb8a84.jpeg)

#### User Experience

With default text labels and compact selected.

 ![ux example - compact](https://global.discourse-cdn.com/meta/original/4X/9/a/b/9abf196eb7c37b4955a4299c7ad386478a2b8989.jpeg)

Topic list excerpts selected.

 ![ux - topic lists exerpts](https://global.discourse-cdn.com/meta/original/4X/1/5/c/15cd79e90915c1d20c4cf2cd22b70e4c0450a510.jpeg)

With `Show_labels` disabled and selecting AI topic summary gists (labels still show on the dropdown buttons on desktop).

 ![ux - summary gists](https://global.discourse-cdn.com/meta/original/4X/c/4/5/c45a2ab84b271205b1725e972aef370507c2fcf6.jpeg)

#### No AI? No problem!

AI summary gists turned off (`AI_summary_gists_enabled` disabled, or Discourse AI not configured) and only Topic List Excerpts being used. Also some shortened button labels (see text strings in settings).

 ![ux - no gists only excerpts](https://global.discourse-cdn.com/meta/original/4X/f/7/5/f75fd84afeacf6bbb120f4ca2e6519a1608f5e6f.jpeg)

#### Mobile

Button is default icon-only and menu behaves same as gists button, popping up from the bottom of screen.

 ![mobile ux - button](https://global.discourse-cdn.com/meta/original/4X/e/4/2/e4278310a69654c2e382b9d944d716dd62d102ef.jpeg)

 ![mobile ux - button menu](https://global.discourse-cdn.com/meta/original/4X/8/8/2/88214d13eb46f2e600258b47a897eb72516d10ba.jpeg)

* * *

## 💼 Use Cases & Features

- Give your users a more intuitive UX to choose between compact, AI summary gists, and topic excerpts, rather than 2 buttons in different places.
- Improved mobile experience with topic excerpts, since button is always visible.
- Can be used without AI summarizing enabled; if Discourse AI setting `AI_summary_gists_enabled` is disabled (or AI not configured), then gists option will not show on button.

* * *

## 💡 Possible Future Todos

- Category or Group exclusion?
- Move category and tag badges to bottom in topic excerpt cards?

* * *

### 🎵 Note

- This was a collaborative project with @Moin, and she created the Topic List Excerpts icon.
- This component does not work with Horizon excerpts.

* * *
 **[Check out my other Discourse stuff](https://meta.discourse.org/filter?q=category%3Acustomization%20created-by%3ALilly%20order%3Acreated)**

---

<div class="post-metadata">

### Author: ![gilles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gilles/32/549022_2.png) [@gilles](https://meta.discourse.org/u/gilles)
#### Post date: [February 1, 2026, 5:24pm UTC](https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885/4 "2026-02-01T17:24:27Z")

</div>

Thanks Lilly

This is a great component 👍

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [February 2, 2026, 3:59pm UTC](https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885/5 "2026-02-02T15:59:16Z")

</div>

thank you! i am glad you find it useful 🙂

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [March 6, 2026, 7:33pm UTC](https://meta.discourse.org/t/topic-excerpts-ai-gists-button/394885/6 "2026-03-06T19:33:34Z")

</div>

I have refactored this component so the button formatting works with the newly [Modernized Foundation](https://meta.discourse.org/t/modernizing-the-foundation-theme/395331) theme. Still works with the original Foundation too.
