# 主题列表预览（旧版）

**URL:** https://meta.discourse.org/t/topic-list-previews-legacy/101646
**Category:** Plugin
**Tags:** deprecated
**Created:** [2018年十一月9日 03:56 UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646 "2018-11-09T03:56:38Z")
**Posts on this page:** 1
**Showing post:** 1343

<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: [2020年十月26日 08:56 UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1343 "2020-10-26T08:56:16Z")

</div>

要生成缩略图，您必须使用本地上传功能或 Discourse 中的原生 S3 集成。不支持其他来源（回退图片除外，但其作用_非常_有限，不会影响您的 og 标签）。

您可以在此处与 Discourse 团队讨论此问题，或发起一个 #Contribute > Feature 主题。

> [@主题修饰符：简要介绍](https://meta.discourse.org/t/theme-modifiers-a-brief-introduction/150605):
>
> 随着主题变得越来越宏大，我们一直在寻找允许它们操纵核心 服务器端 行为的方法。虽然它们永远不会获得与插件相同的控制级别，但我们可以为主题提供一些预定义的钩子来进行操作。 隆重推出：主题修饰符 partying_face 它们在主题的 about.json 文件中使用 modifiers 键指定。 有关修饰符的 100% 最新列表，请查看 [theme\_modifier\_set.rb](https://github.com/discourse/discourse/blob/main/app/models/theme_modifier_set.rb) 底部的内容数据库架构，但以下是我们目前拥有的快速摘要： serialize\_topic\_excerpts 布尔值 (默认 false) - 在序列化主题列表时始终包含摘录 csp\_extensions 字符串数组 - 向 CSP 添加指令。其工作方式与旧的 “extend\_content\_security\_policy” 主题设置方法相同。但请记住，[简单的 \<script src=""\> 标签会自动被允许](https://meta.discourse.org/t/automatically-adding-theme-scripts-to-csp/149028?u=david)。 svg\_icons 字符串数组 - 应包含在图标子集中的图标列表 topic thumbnails 尺寸数组 - 请求主题缩略图集中的其他分辨率。请注意，它们是异步生成的…

---

_[View the full topic](https://meta.discourse.org/t/topic-list-previews-legacy/101646)._
