Skip to main content
A folder is configured by placing an index.yml file inside the folder. This file uses the same properties as page configuration, allowing you to set navigation labels, icons, ordering, visibility, and other options for the entire folder.
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: Guides
icon: book
order: 100
expanded: true

label

label
string
Changes the label used for this folder’s left navigation tree node.
index.yml
label: Custom label

icon

icon
string
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
icon: gear

order

order
string | number
Controls the position of this folder in the left sidebar navigation. Folders are always pinned to the top of their order group.
index.yml
order: 1000   # move to top of navigation
index.yml
order: -1000  # move to bottom of navigation
Uses the same ordering logic as page order.

expanded

expanded
boolean
default:"false"
Expand this folder node in the tree navigation on initial page load.
index.yml
expanded: true

visibility

visibility
string
default:"public"
Hide or password-protect the entire folder.
index.yml
visibility: hidden
index.yml
visibility: protected
index.yml
visibility: private
ModeDescription
publicVisible in navigation and search (default)
hiddenExcluded from navigation and search; accessible by direct URL
protectedShown in navigation; requires a password to view content
privateHidden from navigation; requires a password to access
Alternatively, prefix the folder name with an underscore (_guides) to instruct Retype to ignore it entirely during the build.
For protected and private folders, set the password with the --password CLI flag or the RETYPE_PASSWORD environment variable.

Sets a custom base URL path for all pages within this folder, overriding the default path derived from the folder’s location.
index.yml
permalink: /tutorials
With this configuration, a page at /guides/installation.md would be served from /tutorials/installation/. See page permalink for full details.

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
backlinks:
  enabled: false

nextprev

nextprev.mode
string
Retype Pro only. Controls Next/Previous navigation buttons for all pages in this folder.
OptionDescription
showShow buttons and include pages in sequence (default)
hideHide buttons but keep pages in sequence
excludeHide buttons and exclude pages from sequence
index.yml
nextprev:
  mode: hide
Page-level nextprev.mode takes precedence over the folder-level setting.

Configuration precedence

Folder, page, and project configuration interact with the following precedence (highest to lowest):
  1. Page front matter or paired .yml file
  2. Folder index.yml
  3. Project retype.yml
This means a page can always override its folder’s settings, and a folder can always override the project-wide defaults.