# 如何在主题列表预览主题组件中显示外部图片？

**URL:** <https://meta.discourse.org/t/how-to-display-external-images-in-the-topic-list-previews-theme-component/347096>\
**Category:** Support\
**Created:** [2025年一月14日 16:44 UTC](https://meta.discourse.org/t/how-to-display-external-images-in-the-topic-list-previews-theme-component/347096 "2025-01-14T16:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)\
**Post date:** [2025年一月14日 16:44 UTC](https://meta.discourse.org/t/how-to-display-external-images-in-the-topic-list-previews-theme-component/347096/1 "2025-01-14T16:44:22Z")

</div>

我正尝试在一个 Discourse 的主题列表预览主题组件中显示外部图片（托管在 Cloudflare Images 等外部来源的图片）。目前，外部来源的图片会显示在帖子中，但在预览或图片查看器中不显示。如何才能让外部图片在主题预览中正确显示，就像本地托管或 S3 图片一样？

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2025年一月14日 17:09 UTC](https://meta.discourse.org/t/how-to-display-external-images-in-the-topic-list-previews-theme-component/347096/2 "2025-01-14T17:09:57Z")

</div>

Discourse 中的缩略图是从本地上传生成的。它们从不热链接。

您必须激活图像上传。
