---
title: "Folders"
description: "Configure directory nodes via _dir.yml files."
canonical_url: "https://lab.nnsvn.me/docs/getting-started/writing/folders"
---

> Index of every page on this site: [llms.txt](https://lab.nnsvn.me/llms.txt)

You can customize folders by creating a `_dir.yml` file in the folder.

<ct-code-group>

```yml [_dir.yml]
title: Folder
icon: lucide:folder
navigation.redirect: /frameworks/vue
navBadges:
  - value: New
    type: lime
sidebar:
  style: group
collapse: false
```

```text [Directory structure]
content/
  1.frameworks/
    _dir.yml
    1.vue.md
    2.nuxt.md
```

</ct-code-group>

## Parameters

<ct-field-group>
<ct-field name="title" type="string">

Title of the page. Defaults to the filename.

</ct-field>

<ct-field name="icon" type="string">

The icon shown in the sidebar for the page.

</ct-field>

<ct-field name="navBadges" type="[]">

A list of badges appended to the end of the sidebar link.

</ct-field>

<ct-field name="collapse" type="boolean">

Whether the folder should be collapsed by default.

</ct-field>

<ct-field name="sidebar" type="object">
<ct-collapsible :default-open="true" title="Details">
<ct-field name="style" type="'default' | 'tree' | 'group'" default-value="default">

The style used for the folder. The default value can be configured in the [appConfig](https://lab.nnsvn.me/docs/api/configuration/shadcn-docs#aside).

<table>
<thead>
  <tr>
    <th align="center">
      <code>
        default
      </code>
    </th>
    
    <th align="center">
      <code>
        tree
      </code>
    </th>
    
    <th align="center">
      <code>
        group
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td align="center">
      <img alt="sidebar-default" src="/sidebar-default.png" width="400" />
    </td>
    
    <td align="center">
      <img alt="sidebar-tree" src="/sidebar-tree.png" width="400" />
    </td>
    
    <td align="center">
      <img alt="sidebar-group" src="/sidebar-group.png" width="400" />
    </td>
  </tr>
</tbody>
</table>
</ct-field>
</ct-collapsible>
</ct-field>
</ct-field-group>

## Sitemap

See the full [sitemap](https://lab.nnsvn.me/sitemap.md) for all pages.
