Page Ordering
Methanol builds navigation from your pages/ directory. Within each directory, items are sorted using these rules:
/(the root index page) always comes first.index.mdxcomes before other pages in the same folder. Its frontmatter also controls the folder label and ordering.weightsorts ascending (smaller numbers first). Items withoutweightcome after weighted items.datesorts descending (newer first) when weights match. Items withoutdatecome after dated items.- Finally, items are sorted alphabetically by
title(or file/folder name).
Practical tips
- For folders, put ordering metadata on the folder
index.mdx. - Use
weightfor stable ordering, anddatefor “latest first” lists. - Files or directories starting with
_or.are excluded from navigation.
Example
---
title: Guides
weight: 10
---
See also: Frontmatter reference