Components: List Layout
Guides list layout design for linear, stacked content display. Lists are compact, text-heavy; users scan by title or metadata. Used for blog indexes, documentation, search results, and dense content.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
When to Use List
| Use list when | Use grid when |
|---|
| Text-heavy; scan by title | Visual content; equal emphasis |
| Many items; compact display |
Fewer items; browsing |
| Blog index, docs, search results | Products, templates, gallery |
| F-pattern reading (top-left, left column) | Discovery, exploration |
See grid for grid layout; card for card structure.
List Structure
| Element | Purpose |
|---|
| Items | Single column; stacked vertically |
| Per item |
Title, optional metadata (date, author), excerpt, link |
|
Spacing | Consistent gaps; dividers or alternating background |
|
Density | Compact (docs) vs relaxed (blog) |
List Variants
| Variant | Use |
|---|
| Simple list | Title + link; minimal (nav, TOC) |
| Rich list |
Title, excerpt, date, author | Blog index |
|
Table-like | Columns for metadata (date, status) | Docs, admin |
|
With thumbnail | Small image + text | Blog with thumbnails |
Best Practices
| Principle | Practice |
|---|
| Scannable | Clear titles; consistent hierarchy |
| Compact |
Less vertical space than grid |
|
Link area | Full row or title clickable |
|
Metadata | Date, author, category; secondary styling |
F-Pattern
Users read top-left first, then scan left column. Place primary content (titles) left-aligned; metadata secondary.
Infinite Scroll
If using infinite scroll for list (e.g., blog index, search results): crawlers cannot access content loaded on scroll. Provide paginated component pages or use traditional pagination for SEO-critical content. See site-crawlability for search-friendly infinite scroll implementation.
Responsive
- - Mobile: Single column; full-width items
- Touch targets: ≥44×44px for touchable rows
- Truncation: Long titles; ellipsis or wrap by design
Related Skills
- - site-crawlability: Infinite scroll SEO; paginated component pages; search-friendly implementation
- grid: Grid vs list; when to use each
- carousel: Carousel for slides; when list is too long for space
- card: Card in list (e.g., blog with thumbnail)
- toc-generator: TOC as list; jump links
- blog-page-generator: Blog index list
- article-page-generator: Article list format
- docs-page-generator: Documentation list
组件:列表布局
指导线性、堆叠内容展示的列表布局设计。列表紧凑、以文本为主;用户通过标题或元数据快速浏览。适用于博客索引、文档、搜索结果和密集内容。
调用时:在首次使用时,如有帮助,可用1-2句话介绍此技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用户要求跳过时,直接进入主要输出。
何时使用列表
| 使用列表时 | 使用网格时 |
|---|
| 文本密集;按标题浏览 | 视觉内容;同等强调 |
| 项目多;紧凑展示 |
项目少;浏览为主 |
| 博客索引、文档、搜索结果 | 产品、模板、图库 |
| F型阅读模式(左上角、左列) | 发现、探索 |
参见网格了解网格布局;卡片了解卡片结构。
列表结构
标题、可选元数据(日期、作者)、摘要、链接 |
|
间距 | 一致间距;分隔线或交替背景 |
|
密度 | 紧凑型(文档)vs 宽松型(博客) |
列表变体
| 变体 | 用途 |
|---|
| 简单列表 | 标题+链接;极简(导航、目录) |
| 丰富列表 |
标题、摘要、日期、作者 | 博客索引 |
|
表格式 | 元数据列(日期、状态) | 文档、管理后台 |
|
带缩略图 | 小图片+文字 | 带缩略图的博客 |
最佳实践
垂直空间比网格少 |
|
链接区域 | 整行或标题可点击 |
|
元数据 | 日期、作者、分类;次要样式 |
F型模式
用户首先阅读左上角,然后扫描左列。将主要内容(标题)左对齐;元数据作为次要内容。
无限滚动
如果对列表使用无限滚动(如博客索引、搜索结果):爬虫无法访问滚动加载的内容。请提供分页组件页面,或对SEO关键内容使用传统分页。参见站点可爬取性了解对搜索引擎友好的无限滚动实现。
响应式
- - 移动端:单列;全宽项目
- 触摸目标:可触摸行≥44×44px
- 截断:长标题;根据设计使用省略号或换行
相关技能
- - 站点可爬取性:无限滚动SEO;分页组件页面;对搜索引擎友好的实现
- 网格:网格与列表;各自适用场景
- 轮播:轮播用于幻灯片;当列表因空间不足过长时使用
- 卡片:列表中的卡片(如带缩略图的博客)
- 目录生成器:目录作为列表;跳转链接
- 博客页面生成器:博客索引列表
- 文章页面生成器:文章列表格式
- 文档页面生成器:文档列表