Folders support the same properties as pages, although properties that are not applicable in a folder context (such as
meta.description) are ignored.Sample index.yml
index.yml
label
Changes the label used for this folder’s left navigation tree node.
index.yml
icon
Sets a custom icon for this folder’s navigation node. Accepts an Octicon name, emoji shortcode, inline
<svg>, or a path to an image file.index.yml
order
Controls the position of this folder in the left sidebar navigation. Folders are always pinned to the top of their order group.Uses the same ordering logic as page order.
index.yml
index.yml
expanded
Expand this folder node in the tree navigation on initial page load.
index.yml
visibility
Hide or password-protect the entire folder.
For
index.yml
index.yml
index.yml
| Mode | Description |
|---|---|
public | Visible in navigation and search (default) |
hidden | Excluded from navigation and search; accessible by direct URL |
protected | Shown in navigation; requires a password to view content |
private | Hidden from navigation; requires a password to access |
protected and private folders, set the password with the --password CLI flag or the RETYPE_PASSWORD environment variable.permalink
Sets a custom base URL path for all pages within this folder, overriding the default path derived from the folder’s location.With this configuration, a page at
index.yml
/guides/installation.md would be served from /tutorials/installation/. See page permalink for full details.backlinks
Retype Pro only. Enable or disable the backlinks section for all pages within this folder. Child pages inherit this setting unless they override it in their own front matter.
index.yml
nextprev
Retype Pro only. Controls Next/Previous navigation buttons for all pages in this folder.
Page-level
| Option | Description |
|---|---|
show | Show buttons and include pages in sequence (default) |
hide | Hide buttons but keep pages in sequence |
exclude | Hide buttons and exclude pages from sequence |
index.yml
nextprev.mode takes precedence over the folder-level setting.Configuration precedence
Folder, page, and project configuration interact with the following precedence (highest to lowest):- Page front matter or paired
.ymlfile - Folder
index.yml - Project
retype.yml
