> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 移动端目录栏

使用 [`guide` 和 `overview` 布局](/learn/zh/docs/configuration/page-level-settings#layout)的页面现在可以在移动端和平板设备视口中在头部下方显示粘性目录栏。该栏显示滚动进度指示器和当前标题，点击时展开为完整目录。

在 `docs.yml` 的 `layout` 下添加 `mobile-toc: true` 来启用：

**`docs.yml`**

```yaml docs.yml
layout:
  mobile-toc: true
```

阅读文档