主题列表缩略图

:discourse2: 摘要 主题列表缩略图 允许您在主题列表视图中显示主题缩略图。
:eyeglasses: 预览 在 Discourse 主题创建器中预览(博客风格)
在 Discourse 主题创建器中预览(网格)
在 Discourse 主题创建器中预览(列表)
在 Discourse 主题创建器中预览(瀑布流)
在 Discourse 主题创建器中预览(极简网格)
:hammer_and_wrench: 仓库链接 https://github.com/discourse/discourse-topic-thumbnails
:open_book: 初次接触 Discourse 主题? Discourse 主题使用入门指南

安装此主题组件

功能特性

系统会为列表生成优化后的图片,并为高分辨率显示屏提供不同分辨率的版本。图片会随滚动懒加载(在浏览器原生支持的情况下)。

默认情况下,Discourse 将使用主题原始回复(OP)中的第一张图片。如果您希望从 OP 中选择另一张图片作为缩略图,请在 Markdown 中添加 |thumbnail。例如:

![alttext|100x100](upload://aaa)
![alttext|100x100|thumbnail](upload://bbb) << 这一张将作为缩略图

共有五种显示模式,可通过主题设置按分类或标签进行配置。

例如:

网格模式:

瀑布流模式:

列表模式:

技巧与提示

如果您希望帖子中的 Onebox 生成缩略图,需要启用以下站点设置:download_remote_images_to_local。此外,您还需要重新烘焙相关帖子。

设置项

名称 描述
default_thumbnail_mode 默认使用的缩略图显示模式
docs_thumbnail_mode 如果启用了 docs 插件,则用于文档主题的缩略图显示模式
blog_style_categories 在这些分类中使用博客风格视图。该样式会利用主题或主题组件中启用的主题摘录功能
minimal_grid_categories 在这些分类中使用极简网格视图
grid_categories 在这些分类中使用网格视图
masonry_categories 在这些分类中使用瀑布流视图
list_categories 在这些分类中使用列表视图
blog_style_tags
minimal_grid_tags 为这些标签使用极简网格视图
grid_tags 为这些标签使用网格视图
masonry_tags 为这些标签使用瀑布流视图
list_tags 为这些标签使用列表视图
suggested_topics_mode 推荐主题应使用的缩略图显示模式?如果留空,将遵循“在主题列表之外启用”的设置
enable_outside_topic_lists 在非主题列表页面(如用户活动、私人消息、推荐主题)上启用缩略图
placeholder_icon 用于没有缩略图的主题的图标
mobile_thumbnails 在移动设备上启用缩略图
list_thumbnail_size “列表”视图中缩略图的基础尺寸

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

92 个赞
MD Topic List component
Theme modifiers: A brief introduction
Thumbnail generation & markdown rendering issue
Image_url is null after update
User Card Directory
Pictures in grid page layout
Thumbnail of topic
Amazing customized community
Blog Post Styling
Topic List Previews (legacy)
Topics list in mobile view: excerpt overflows and count/date wraps
Topic List Previews (legacy)
Using onebox images for topic thumbnails
Is there a plugin to make my forum a shop?
Add icons for Views and Replies, and Last Activity date in Topic Cards
[PAID] Modifying Video Upload theme to display topic thumbnails
How to make tiles like in discourse theme category?
Topic List Previews (TLP)
User Portfolio
Topic List Excerpts
Rounded Borders for images, oneboxes, blockquotes & more
Extend Topic List Thumbnails TC with like button
What are good plugins or theme components for a forum emphasizing pictures?
What is the name of this theme?
Developing a component or plugin similar to topic list thumbnails or topic list previews
Set the image used for social network sharing?
Latest list as grid view
Fakebook Theme
I want to create a Theme/Theme component as shown in the picture below!
Customize topic list entries (sorting, grouping, filtering) for better organization
Enabling a plugin for a specific theme only
New Photography Theme
Topic Cards
How do I fix this display?
Thumbnails are missing for our external embeds when using topic-thumbnails
FKB Pro - Social theme
Improve the Follow Feed
FKB Pro - Social theme
Customizing your site with existing theme components
User Portfolio
Is there a way to select a Default Image for Topic List Theme Component?
Topic List Item Click Animation
Blog-style layout affects Tooltips
Discourse Docs
How to display posts as blocks?
How is the "theme" Category acheived in Meta?
Minima Theme
Can the homepage display images within the Topic feed?
Topic List Previews (TLP)
Topic List Previews (legacy)
Is there a Kanban theme for Discourse?
Discussion grid latest
Topic List Previews (legacy)
Topic List Previews (legacy)
How to display posts in grid?
Displaying Views in Topic view (with no replies)
Topic List Previews (legacy)
Group Topics by Category
CASE STUDY: Why a journal category could be the next big growth opportunity for your forum
Blog Post Styling
Topic Cards
Can discourse be used entirely through the APIs to build a flutter app?
Topic List Author
What Will be Best theme for a site like ecommerce
Topic Cards
FKB Pro - Social theme
FKB Pro - Social theme
Migrated my old custom-built trail-journal/blog to Discourse
Help us test Horizon, our newest theme
Alternative post templates
Creating a Unique Gallery Layout for a Category
Photo Competition or Contest - Do We Have Anything?
Display images on the article's front page
How can I make my forum look like this one?
Sharing link to Facebook does not show image (open graph)
Discourse Docs
The pictures are disappear and some Theme component is ineffective
Graceful Theme
How can I make a Discourse forum as "reddit like" as possible
All links to categories broken?
Add an option to list topics by tagging date
Is there like a Reddit style plugin?
How would I able to list topics as boxes
Best way to implement Excerpts in topic list?
MD Topic List Mobile component
Featured Topics
Add Onebox integration; show thumbnail with topic-thumbnails plugin
Topic List Previews (legacy)
Plugin used in theme
Plugin used in theme
Topic List Previews (legacy)
Created Topic Sort
All latest images in posts from a category
How to create a custom button?
Topic Cards
Filter posts with images (gallery view)
[Question/Request] Featured image url for post
Category "Uncategorized" not displayed for globally pinned topics below title
Is there a 'reddit' style discourse theme / plugin?
Blog Post Styling
Potential way to hide ignored users from topic list?