页面

shadcn-docs-nuxt 中使用的前置元数据属性。

---
title: 前置元数据
description: shadcn-docs-nuxt 中使用的前置元数据属性。
icon: lucide:book-type

navTruncate: false
navBadges:
  - value: 新功能
    type: lime

badges:
  - value: Docus
    to: https://docus.dev/api/components#alert
    target: _blank
  - value: 源码
    icon: lucide:code
    to: https://github.com/ZTL-UwU/shadcn-docs-nuxt/blob/main/components/content/Alert.vue
    target: _blank

authors:
  - name: Tony Zhang
    username: ZTL-UwU
    avatar: https://www.github.com/ZTL-UwU.png
    to: https://github.com/ZTL-UwU
    target: _blank
---

<!-- 页面内容 -->

展示

badges:
  - value: 0.8.10
  - value: 源码
    icon: lucide:code
    to: https://github.com/ZTL-UwU/shadcn-docs-nuxt/blob/main/components/content/FileTree.vue
    target: _blank

参数

titlestring
页面标题。默认为文件名。
descriptionstring
页面描述。默认为页面的第一个 <p> 标签内容。
navigationboolean
true
定义页面是否包含在侧边栏中。在 index.md 中设置为 false
iconstring
在侧边栏中显示的页面图标。
navBadges[]
附加到侧边栏链接末尾的徽章列表。
navTruncateboolean
true
是否截断侧边栏标题。
badges[]
显示在页面标题底部的徽章列表。
authors[]
显示在页面标题底部的作者列表。
tocboolean
true
是否为此页面显示目录部分。
asideboolean
true
是否为此页面显示侧边栏部分。
editLinkboolean
true
是否为此页面显示编辑链接。
prevNextboolean
true
是否显示上一页和下一页按钮。
breadcrumbboolean
true
是否显示面包屑导航。
fullpageboolean
false
是否使用像首页一样的全页布局。示例